lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 12 Oct 2011 09:13:54 -0400
From:	Rik van Riel <riel@...hat.com>
To:	David Rientjes <rientjes@...gle.com>
CC:	Satoru Moriya <satoru.moriya@....com>,
	Randy Dunlap <rdunlap@...otime.net>,
	Satoru Moriya <smoriya@...hat.com>,
	linux-kernel@...r.kernel.org, linux-mm@...ck.org,
	"lwoodman@...hat.com" <lwoodman@...hat.com>,
	Seiji Aguchi <saguchi@...hat.com>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Hugh Dickins <hughd@...gle.com>,
	"hannes@...xchg.org" <hannes@...xchg.org>
Subject: Re: [PATCH -v2 -mm] add extra free kbytes tunable

On 10/11/2011 05:04 PM, David Rientjes wrote:

> In other words, I think it's a fine solution if you're running a single
> application with very bursty memory allocations so you need to reclaim
> more memory when low, but that solution is troublesome if it comes at
> the penalty of other applications and that's a direct consequence of it
> being a global tunable.  I'd much rather identify memory allocations in
> the kernel that causing the pain here and mitigate it by (i) attempting to
> sanely rate limit those allocations,

Rate limiting just increases the problem from what it was
before the patch was introduced, because the entire purpose
is to reduce allocation latencies by tasks with low latency
requirements.

> (ii) preallocate at least a partial
> amount of those allocations ahead of time so avoid significant reclaim
> all at one,

Unless I'm mistaken, isn't this functionally equivalent to
increasing the size of the free memory pool?

> or (iii) annotate memory allocations with such potential so
> that the page allocator can add this reclaim bonus itself only in these
> conditions.

I am not sure what you are proposing here.

How would this scheme work?

-- 
All rights reversed
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ