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:	Tue, 1 May 2012 14:26:56 -0700
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	Rik van Riel <riel@...hat.com>
Cc:	Johannes Weiner <hannes@...xchg.org>, linux-mm@...ck.org,
	Andrea Arcangeli <aarcange@...hat.com>,
	Peter Zijlstra <peterz@...radead.org>,
	Mel Gorman <mgorman@...e.de>,
	Minchan Kim <minchan.kim@...il.com>,
	Hugh Dickins <hughd@...gle.com>,
	KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>,
	linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [patch 0/5] refault distance-based file cache sizing

On Tue, 01 May 2012 17:19:16 -0400
Rik van Riel <riel@...hat.com> wrote:

> On 05/01/2012 03:08 PM, Andrew Morton wrote:
> > On Tue,  1 May 2012 10:41:48 +0200
> > Johannes Weiner<hannes@...xchg.org>  wrote:
> >
> >> This series stores file cache eviction information in the vacated page
> >> cache radix tree slots and uses it on refault to see if the pages
> >> currently on the active list need to have their status challenged.
> >
> > So we no longer free the radix-tree node when everything under it has
> > been reclaimed?  One could create workloads which would result in a
> > tremendous amount of memory used by radix_tree_node_cachep objects.
> >
> > So I assume these things get thrown away at some point.  Some
> > discussion about the life-cycle here would be useful.
> 
> I assume that in the current codebase Johannes has, we would
> have to rely on the inode cache shrinker to reclaim the inode
> and throw out the radix tree nodes.
> 
> Having a better way to deal with radix tree nodes that contain
> stale entries (where the evicted pages would no longer receive
> special treatment on re-fault, because it has been so long) get
> reclaimed would be nice for a future version.
> 

Well, think of a stupid workload which creates a large number of very
large but sparse files (populated with one page in each 64, for
example).  Get them all in cache, then sit there touching the inodes to
keep then fresh.  What's the worst case here?


--
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