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]
Message-ID: <20151206211454.GB2614@thunk.org>
Date:	Sun, 6 Dec 2015 16:14:54 -0500
From:	Theodore Ts'o <tytso@....edu>
To:	The Ghost <the-ghost@...ox.ru>
Cc:	linux-ext4@...r.kernel.org
Subject: Re: Does ext4 write anything during reading with relatime?

On Sat, Dec 05, 2015 at 02:03:14PM +0300, The Ghost wrote:
> When mounted read-only, naturally, reading from an ext4 filesystem does not
> cause any write operations. But if I mount it read-write and try to read
> from it, then apparently some write operations are issued, because my
> "write-mostly" drive in a RAID1 array spins up. Now, I understand that
> apparently the mount operation itself does write something, and I do mount
> it with a "relatime" option, but I'm just reading stuff over and over again
> - it shouldn't be caused by atime updating. Also, a bug with "write-mostly"
> finally got fixed, and I'm using a fixed kernel (latest 3.16 from Debian
> Jessie-backports).

Relatime doesn't guarantee that there will be _no_ atime updates.  You
would need to mount with noatime if you want to guarantee that there
will be zero atime updates.

Relatime will update atime if the file is accessed and the atime is
older than 24 hours.  This guarantees that atime is up to date to
approximately a day, so you can tell if a file has been accessed
recently.  This is useful for any system administrators.

But it does mean there will still be quite a bit of atime updates ---
especially since atime updates apply to directories as much as files.
Hence, if you haven't mounted the file system in 24 hours, and then
you run a find operation on the entire file system, the atime for
every single directory on the file system will need to be updated.

Cheers,

					- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ