Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
DESCRIPTION
The ulimit utility shall set or report the file-size writing limit
imposed on files written by the shell and its child processes (files of
any size may be read). Only a process with appropriate privileges can
increase the limit.
APPLICATION USAGE
Since ulimit affects the current shell execution environment, it is
always provided as a shell regular built-in. If it is called in a sepa‐
rate utility execution environment, such as one of the following:
nohup ulimit -f 10000
env ulimit 10000
it does not affect the file size limit of the caller's environment.
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?
How come thunderhog consumes more resident memory that ulimit allows?
"ulimit -m" sets RLIMIT_RSS. Linux does not enforce RLIMIT_RSS.
From man setrlimit:
Code:
RLIMIT_RSS
Specifies the limit (in pages) of the process's resident set
(the number of virtual pages resident in RAM). This limit has
effect only in Linux 2.4.x, x < 30, and there affects only calls
to madvise(2) specifying MADV_WILLNEED.
Instead consider "ulimit -v" which sets RLIMIT_AS.
Code:
RLIMIT_AS
The maximum size of the process's virtual memory (address space)
in bytes. This limit affects calls to brk(2), mmap(2) and
mremap(2), which fail with the error ENOMEM upon exceeding this
limit. Also automatic stack expansion will fail (and generate a
SIGSEGV that kills the process if no alternate stack has been
made available via sigaltstack(2)). Since the value is a long,
on machines with a 32-bit long either this limit is at most 2
GiB, or this resource is unlimited.
Also, the man page for ulimit is not really relevant. It refers to the (obsolete?) ulimit "utility".
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.