Gentoo Archives: gentoo-user

From: Laurence Perkins <lperkins@×××××××.net>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: RE: [gentoo-user] LVM and moving things around
Date: Tue, 05 Apr 2022 19:22:07
Message-Id: MW2PR07MB4058982F1ACA625A8571C56BD2E49@MW2PR07MB4058.namprd07.prod.outlook.com
In Reply to: Re: [gentoo-user] LVM and moving things around by Rich Freeman
1 > -----Original Message-----
2 > From: Rich Freeman <rich0@g.o>
3 > Sent: Tuesday, April 5, 2022 11:59 AM
4 > To: gentoo-user@l.g.o
5 > Subject: Re: [gentoo-user] LVM and moving things around
6 >
7 > On Tue, Apr 5, 2022 at 11:10 AM Wols Lists <antlists@××××××××××××.uk> wrote:
8 > >
9 > > I don't know how you take advantage of it, but linux by default caches
10 > > disk i/o. You can tell it to "don't cache" and apparently it makes a
11 > > major difference. Given that rsync reads once and then never uses it
12 > > again, you don't want it cached.
13 > >
14 >
15 > I suggest reading:
16 > man posix_fadvise
17 > https://insights.oetiker.ch/linux/fadvise/
18 > http://rdiez.shoutwiki.com/wiki/The_Linux_Filesystem_Cache_is_Braindead
19 > https://lwn.net/Articles/806980/
20 > https://bugzilla.samba.org/show_bug.cgi?id=9560
21 >
22 > There might be something more recent, but my overall impression is that this problem is less solved than it probably ought to be.
23 >
24 > --
25 > Rich
26 >
27 I remember seeing something more with regard to "please cache/please discard/this can be immediately swapped because I won't need it for a while" stuff for like the 5.15 kernel or something, but the actual system programs will have to be updated to use it before it'll make any difference.
28
29 LMP