Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 30 Oct 2018 14:25:51 -0700
From: Matthew Wilcox <>
To: Andy Lutomirski <>
Cc:, Kees Cook <>,
	Peter Zijlstra <>,
	Igor Stoppa <>,
	Mimi Zohar <>,
	Dave Chinner <>,
	James Morris <>, Michal Hocko <>,
	Kernel Hardening <>,
	linux-integrity <>,
	linux-security-module <>,
	Igor Stoppa <>,
	Dave Hansen <>,
	Jonathan Corbet <>, Laura Abbott <>,
	Randy Dunlap <>,
	Mike Rapoport <>,
	"open list:DOCUMENTATION" <>,
	LKML <>,
	Thomas Gleixner <>
Subject: Re: [PATCH 10/17] prmem: documentation

On Tue, Oct 30, 2018 at 11:51:17AM -0700, Andy Lutomirski wrote:
> Finally, one issue: rare_alloc() is going to utterly suck
> performance-wise due to the global IPI when the region gets zapped out
> of the direct map or otherwise made RO.  This is the same issue that
> makes all existing XPO efforts so painful. We need to either optimize
> the crap out of it somehow or we need to make sure it’s not called
> except during rare events like device enumeration.

Batching operations is kind of the whole point of the VM ;-)  Either
this rare memory gets used a lot, in which case we'll want to create slab
caches for it, make it a MM zone and the whole nine yeards, or it's not
used very much in which case it doesn't matter that performance sucks.

For now, I'd suggest allocating 2MB chunks as needed, and having a
shrinker to hand back any unused pieces.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.