how does ulimit work
$ ulimit -m 150000 -v 500000
$ /usr/lib/thunderbird-9.0/thunderbird-bin However $ top top - 23:46:50 up 4 days, 9:17, 6 users, load average: 0.33, 0.40, 0.43 Tasks: 129 total, 1 running, 128 sleeping, 0 stopped, 0 zombie Cpu(s): 10.2%us, 2.8%sy, 0.0%ni, 87.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 1024220k total, 920192k used, 104028k free, 4176k buffers Swap: 2096444k total, 0k used, 2096444k free, 385832k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 10545 user 1 0 475m 154m 31m S 0.0 15.4 0:30.89 firefox 9183 user 1 0 463m 168m 19m S 0.0 16.9 1:43.64 thunderbird-bin How come thunderhog consumes more resident memory that ulimit allows? |
man ulimit
Quote:
|
Yeah, I know about man ulimit.
How come thunderbird consumes more resident memory than what ulimit allows? |
I just ran the same test on my system and thunderbird crashed because of lack of memmory. It appears to need it.
If you were doing all in the same shell I can only guess it is a permission issue. Code:
[joe@Tux-Box ~]$ thunderbird |
Yep, I speculate that ReimderFox extension, which I don't have installed, wants to gobble even more memory. This is so poorly designed it cannot handle out of memory error.
In your case ulimit seems to have done it's job though. My question is opposite: why thunderbird could allocate more memory that ulimit should have let it? |
Quote:
From man setrlimit: Code:
RLIMIT_RSS Code:
RLIMIT_AS http://pubs.opengroup.org/onlinepubs...es/ulimit.html The ulimit utility is not present on my Ubuntu Linux system. Instead, ulimit is typically a shell builtin command, and is documented in each shell's manpage. |
All times are GMT -5. The time now is 12:46 AM. |