SIZE(1) General Commands Manual SIZE(1)NAME
size - print text, data, and bss size of a program
SYNOPSIS
size [file] ...
EXAMPLES
size file # Print the size of file
DESCRIPTION
The text, data, bss, and total sizes for each argument are printed. If no arguments are present, a.out is assumed. The amount of memory
available for combined stack and data segment growth is printed in the column 'stack.' This is the value manipulated by the chmem command.
The total amount of memory allocated to the program when it is loaded is listed under 'memory.' This value is just the sum of the other
four columns.
SEE ALSO anm(1), asize(1), ar(1), chmem(1), install(1), nm(1).
SIZE(1)
Check Out this Related Man Page
CHMEM(1) General Commands Manual CHMEM(1)NAME
chmem - change memory allocation
SYNOPSIS
chmem [+] [-] [=] amount file
EXAMPLES
chmem =50000 a.out # Give a.out 50K of stack space
chmem -4000 a.out # Reduce the stack space by 4000 bytes
chmem +1000 file1 # Increase each stack by 1000 bytes
DESCRIPTION
When a program is loaded into memory, it is allocated enough memory for the text and data+bss segments, plus an area for the stack. Data
segment growth using malloc , brk , or sbrk eats up stack space from the low end. The amount of stack space to allocate is derived from a
field in the executable program's file header. If the combined stack and data segment growth exceeds the stack space allocated, the pro-
gram will be terminated.
It is therefore important to set the amount of stack space carefully. If too little is provided, the program may crash. If too much is
provided, memory will be wasted, and fewer programs will be able to fit in memory and run simultaneously. MINIX does not swap, so that
when memory is full, subsequent attempts to fork will fail. The compiler sets the stack space to the largest possible value (for the Intel
CPUs, 64K - text - data). For many programs, this value is far too large. Nonrecursive programs that do not call brk , sbrk , or malloc ,
and do not have any local arrays usually do not need more than 8K of stack space.
The chmem command changes the value of the header field that determines the stack allocation, and thus indirectly the total memory required
to run the program. The = option sets the stack size to a specific value; the + and - options increment and decrement the current value by
the indicated amount. The old and new stack sizes are printed.
SEE ALSO install(1), brk(2).
CHMEM(1)
Hello again;
I have a directories and subdirectories in my current directory and i wanna to find the directories( and subdirectories ) which are larger than what user enters as first parameter.
find . -type d -size +"$1"c -print > directories.dat
I used this command and i am not sure it is... (19 Replies)
OS: Solaris 10_x86.
Problem:
Server needs to be patched, but root "/" is near full.
/dev/dsk/c1t1d0s0 4.2G 3.9G 284M 94% /
The /exports/home dir has a lot more space, and I'd like to either move root "/" to it, or delete it all together:
/dev/dsk/c1t1d0s7 12G ... (20 Replies)
Hi All,
I have some requirement. i dont know if we can write some shell script to fulfill the requirement. Here is my requirement...
I have some files under /var/opt/abc/xyz like below.
-rw-r--r-- 1 root root 789222 Aug 14 11:03 big.sh
-rw-r--r-- 1 root root 789222 Aug 14 11:03 big.txt... (25 Replies)
I was configuring my BIOS after installing 2 GB of RAM, and I saw this:
System memory
Installed size : 4096MB
Usable size : 3584MBI have a 64-bit OS (Ubuntu 9.04 64-bit), so does that mean the motherboard (ASUS M3A78-T) doesn't support more than 4 GB of addressing? (23 Replies)
I have a PERC 5/i card. Im using with it 3 15k rpm HDD's (model: SEAGATE Savvio 15K ST936751SS). Im going to install debian on this array.. and im looking for performance... So what would be the stripe size that i should set this raid 0 into to give me the best performance?
Thanks (22 Replies)
Greetings. I've been into computers since the '80s, but this is my first attempt at Linux.
I'm installing Debian Lenny on a PIII 733 with 10GB hard drive and 512MB Ram. I intend to use the machine primarily as a development server, with things like mySQL, Apache, php, etc.
I don't really want... (22 Replies)
Hi guys, i am new to perl. I started reading the perl documents and try to come up with some logic.
I am trying to create a script that would go into a location, search for todays files, then searches for all .txt files from today.
If todays not found, its an error
If file size is less... (26 Replies)
i'm using a C program and running it on a linux server, i got 2 adressess of 2 variables, and 2 addresses of 2 chars, and compared it. and got the size of a int and the size of a char.
why is a size of a int (4 bytes) bigger then the size of a char (1 byte)?
also if i do &a-&b i get 1, but if i... (30 Replies)
Hi All,
I have a requirement to monitor the sub-directories under /home in a way that if the the folder size increases by 30 GB in a span of like an hour then it needs to send email alerts listing what as the actual size was and what's the current size which the subject listing the sub-directory... (25 Replies)
Hello All,
I am transfering a gzipped file from LINUX to LINUX using scp -C comand.
It is a nightly job, called by crontab. After copy finishes, the file sizes are different between source and destination. Say .gz file is 14782805941 bytes on source and 13496172544 bytes on destination. When I... (20 Replies)
to get the most granular size of a file, you can do so with:
solaris hosts:
ls -l /tmp/filea | awk '{print $4}'
linux hosts:
ls -l /tmp/filea | awk '{print $5}'
Is there a more universal command that will give the file size?
i'm leery of this ls command because the fields in... (21 Replies)
This thread is about using tar & other compression utilities on AIX ;
1. Find out which version of tar you are using
thanks to bakunin
>what $(which tar)
/usr/bin/tar:
61 1.14 src/bos/usr/ccs/lib/libc/__threads_init.c, libcthrd, bos53 0 7/11/00 12:04:14
10 ... (21 Replies)