Almost none of this sounds right. If you're only running with a zone memory cap then you certainly never want to use the rcap daemon, since that only is for projects on smartos. That svc is disabled by default, so I assume you enabled it? What does your zonecfg look like? Why aren't you using the normal zone memory capping mechanisms? What crashed? Is there a panic or dump we could take a look at? What platform are you running?
Thanks, Jerry On Tue, Apr 26, 2016 at 5:32 PM, David Preece <[email protected]> wrote: > I'm having problems with resource capping. In particular, a zone is able > to take out the whole machine which is clearly not what we want. > > I have a zone capped at 4096M (of 8192) and is building mesos with make > -j8 (it's an 8 core machine). As it gets into the 'meat' of the build, the > rss shoots up and locks the box - I think it must be thrashing pages. > > I'm running the rcap daemon: > > [root@i7 ~]# rcapadm > state: enabled > memory cap enforcement threshold: 75% > process scan rate (sec): 5 > reconfiguration rate (sec): 60 > report rate (sec): 5 > RSS sampling rate (sec): 5 > > and it is enabled: > > [root@i7 ~]# svcs | grep rcap > online 23:07:43 svc:/system/rcap:default > > and just before the crash zonememstat reported > > [root@i7 ~]# zonememstat > ZONE RSS(MB) CAP(MB) NOVER POUT(MB) > global 98 - - - > 7302f2d4-a0a4-4686-9497-b9be94bf16d6 6159 4096 0 0 > > So maybe 75% is too high, but I think for a zone to be even able to take > out global is bad, bad news. Any ideas? > > Thanks, > Dave > > > *smartos-discuss* | Archives > <https://www.listbox.com/member/archive/184463/=now> > <https://www.listbox.com/member/archive/rss/184463/21516906-2011406d> | > Modify > <https://www.listbox.com/member/?&> > Your Subscription <http://www.listbox.com> > ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
