Check swap -s , applications will need swap and if that memory is reserved then it being free won't help On May 9, 2015 1:30 AM, "Robert Mustacchi" <[email protected]> wrote:
> On 5/8/15 18:20 , Eric Saxby wrote: > > On Fri, May 8, 2015 at 6:03 PM, Lloyd Parkes < > [email protected]> > > wrote: > > > >> On 9 May 2015 at 12:10, Eric Saxby <[email protected]> wrote: > >> > >>> When the process reaches around 280M RSS, a brk() > >>> > >> > >> I'm pretty sure that memory limits are not related to RSS. The limits > will > >> be for virtual memory which is almost certainly what you have run out > of. > >> mmap() will contribute to your virtual memory usage. What does the SIZE > >> column in prstat say when you get this error? > >> > >> > > Only a little over 290M. Various tools still show multiple gigs of memory > > free. > > > > > >> Many of the memory limits these days appear to default to being > unlimited, > >> so maybe you have consumed all the virtual memory in your zone? The pmap > >> command will show you what memory is actually assigned to process, which > >> may help. > >> > >> > > Ah, I hadn't thought of pmap. I'll reprovision and see if I can get any > > more info out of that. I still feel like something weird is happening, or > > I'm missing something. > > As Lloyde was suggesting, it isn't actually RSS that you want to look. > The RSS only indicates the total amount of memory that is active in RAM > at the moment. If you mmap a large region, but don't actively use it, it > will not count against your RSS. However, whenever memory is allocated > either through the use of the brk system call or through the use of > mmap, we ensure that we always have a swap reservation for it, > regardless if we are using it or not. > > The zone has a cap on this amount of anonymous memory which is > configured in vmadm via the property 'max_swap'. What you should focus > on in this case is not the RSS, but if you're looking at prstat, you > want to look at the sum of the SIZE column and see how that compares to > the max_swap value you set. > > Let me know if this makes sense or if I can explain it better. > > Thanks, > Robert > > > ------------------------------------------- > smartos-discuss > Archives: https://www.listbox.com/member/archive/184463/=now > RSS Feed: > https://www.listbox.com/member/archive/rss/184463/22320416-f4e6ee1d > Modify Your Subscription: > https://www.listbox.com/member/?& > Powered by Listbox: 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
