Search found 3 matches

by adaw
Fri Jul 31, 2009 6:50 pm
Forum: Suggestion Box
Topic: change in 'memlock' value of 'limits.conf' in the wiki
Replies: 17
Views: 44876

Re: change in 'memlock' value of 'limits.conf' in the wiki

I did some research. The memlock value is the amount of memory in KB that a process can lock into the physical memory (ram), this memory cannot be moved to the page file (swap) which avoids time consuming page in/out. See mlock(2) There is also "the maximum resident set size", which seems ...
by adaw
Wed Jul 29, 2009 10:52 pm
Forum: Suggestion Box
Topic: change in 'memlock' value of 'limits.conf' in the wiki
Replies: 17
Views: 44876

Re: change in 'memlock' value of 'limits.conf' in the wiki

How about this for hard limit: Allow audio group to use 87.5% of your system memory: echo Recommended value for memlock: `awk '/MemTotal/ {print $2/8*7}' /proc/meminfo` I don't know if this works, it's just a guess. ulimits: bash: "ulimit -Sl" bash: "help ulimit" > ulimit -Sl 100...
by adaw
Wed Jul 29, 2009 6:49 pm
Forum: Suggestion Box
Topic: change in 'memlock' value of 'limits.conf' in the wiki
Replies: 17
Views: 44876

Re: change in 'memlock' value of 'limits.conf' in the wiki

I had unlimited in my limits.conf but now it looks like this: # amarokapp seems to swallow all memory during session logout?, limit to 2GB #@audio - memlock unlimited @audio - memlock 2097152 I had the problem that sometimes the system did not shut down. There was nothing I could do. Sometimes the s...