On Mon, Mar 10, 2014 at 09:26:46PM +0100, Peter N. M. Hansteen wrote:
> On my laptop (a 2009-vintage Thinkpad SL500), I'd been noticing that
> some applications have been steadily gaining weight, such as popular
> web browsers (chome, firefox) but also (x)emacs with largish maildirs
> in gnus have become ever more sluggish.
> 
> So after I finally sent off enough material to have a bit of time to
> investigate not directly network-related stuff, I found some old notes
> which I think is from the chromium pkg-message:
> 
> --- 
> You may need to crank shared memory limits for chromium to work
> properly under load:
> 
> # sysctl kern.shminfo.shmall=32768
> 
> Your default datasize might not be enough for v8 so make sure it
> is more than 512M, so try to set it to 715M by doing:
> 
> $ ulimit -d 716800
> 
> or modify /etc/login.conf.
> ---
> 
> I already had kern.shminfo.shmall=32768 set in my sysctl.conf, so at
> first I did a bit of web searching, and came up with this stanza in
> login.conf that appeared to help matters a bit:
> 
> staff:\
>         :datasize-cur=infinity:\
>         :datasize-max=infinity:\
>         :datasize=infinity:\
>         :openfiles-cur=1024:\
>         :stacksize-cur=16M:\
>         :maxproc-max=512:\
>         :maxproc-cur=512:\
>         :ignorenologin:\
>         :requirehome@:\
>         :tc=default:
> 
> (the infinity values came from a google site, I forget which but I can
> probably find it again).

Caveat emptor: I got badly burned once setting datasize-max to
infinity... Once one process required more memory than what was
physically available swapping kicked in and the whole system started
crawling to the point of dropping network connections and taking a few
minutes to switch virtual consoles[1].

[1] http://marc.info/?t=138693842100001

Cheers
Zé

-- 

Reply via email to