[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [dm-devel] new dm-bufio
- From: Mikulas Patocka <mpatocka redhat com>
- To: xfs oss sgi com, xfs-masters oss sgi com, Christoph Hellwig <hch infradead org>
- Cc: device-mapper development <dm-devel redhat com>, Joe Thornber <thornber redhat com>, Mike Snitzer <snitzer redhat com>, "Alasdair G. Kergon" <agk redhat com>
- Subject: Re: [dm-devel] new dm-bufio
- Date: Mon, 29 Aug 2011 14:53:51 -0400 (EDT)
On Tue, 23 Aug 2011, Christoph Hellwig wrote:
> FYI, the "shrinker" interface in include/linux/shrinker.h is how the
> VM tells subsystems to shrink their memory usage. It is used for
> various slab caches, and the XFS buffercache in
> fs/xfs/linux-2.6/xfs_buf.c
BTW. shrinker functions from xfs_qm.c - xfs_qm_shake and
xfs_qm_shake_freelist - look completely bogus. They don't read
sc->nr_to_scan to determine how many values they should scan (and compare
it with zero to test if they should scan at all) and they return the
number of entries freed - the interface specifies that they should return
the number of entries remaining the in cache.
Mikulas
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]