Re: new dm-bufio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel


[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux