Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Nov 2012 16:06:04 -0800 (PST)
From:      Sushanth Rai <sushanth_rai@yahoo.com>
To:        Konstantin Belousov <kostikbel@gmail.com>, Alan Cox <alc@rice.edu>
Cc:        alc@freebsd.org, pho@freebsd.org, StevenSears <Steven.Sears@netapp.com>, "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: Memory reserves or lack thereof
Message-ID:  <1352765164.25812.YahooMailClassic@web181702.mail.ne1.yahoo.com>
In-Reply-To: <50A181C9.7030209@rice.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
=0A=0A--- On Mon, 11/12/12, Alan Cox <alc@rice.edu> wrote:=0A=0A> From: Ala=
n Cox <alc@rice.edu>=0A> Subject: Re: Memory reserves or lack thereof=0A> T=
o: "Konstantin Belousov" <kostikbel@gmail.com>=0A> Cc: "Sushanth Rai" <sush=
anth_rai@yahoo.com>, alc@freebsd.org, pho@freebsd.org, "StevenSears" <Steve=
n.Sears@netapp.com>, "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd=
.org>=0A> Date: Monday, November 12, 2012, 3:10 PM=0A> On 11/12/2012 3:48 P=
M, Konstantin=0A> Belousov wrote:=0A> > On Mon, Nov 12, 2012 at 01:28:02PM =
-0800, Sushanth Rai=0A> wrote:=0A> >> This patch still doesn't address the =
issue of=0A> M_NOWAIT calls driving=0A> >> the memory the all the way down =
to 2 pages, right ?=0A> It would be nice to=0A> >> have M_NOWAIT just do no=
n-sleep version of M_WAITOK=0A> and M_USE_RESERVE=0A> >> flag to dig deep.=
=0A> > This is out of scope of the change. But it is required=0A> for any f=
urther=0A> > adjustements.=0A> =0A> I would suggest a somewhat different re=
sponse:=0A> =0A> The patch does make M_NOWAIT into a "non-sleep version of=
=0A> M_WAITOK" and does reintroduce M_USE_RESERVE as a way to=0A> specify "=
dig deep".=0A> =0A> Currently, both M_NOWAIT and M_WAITOK can drive the=0A>=
 cache/free memory down to two pages.=A0 The effect of the=0A> patch is to =
stop M_NOWAIT at two pages rather than allowing=0A> it to continue to zero =
pages.=0A=0A=0AThanks for the correction. I was associating VM_ALLOC_SYSTEM=
 with just M_NOWAIT as it seemed in the first verion of the patch.=0A=0ASus=
hanth



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1352765164.25812.YahooMailClassic>