noatime isn't working?

Hi everyone,

I have an SSD and I’m trying to set noatime to save writes. I didn’t do this at the time of install, so I edited /etc/fstab later on. I noticed, however, that when I right-click on a file and view its properties, it still gives me a “modified” and “accessed” time. Did I do something wrong? Here is my fstab:


/dev/disk/by-id/ata-INTEL_SSDSA2M080G2GN_CVPO0161048A080JGN-part1 /                    reiserfs   acl,user_xattr,noatime        1 1
/dev/disk/by-id/ata-INTEL_SSDSA2M080G2GN_CVPO0161048A080JGN-part2 /home                reiserfs   acl,user_xattr,noatime        1 2
/dev/disk/by-id/ata-INTEL_SSDSA2M080G2GN_CVPO0161048A080JGN-part4 /windows/C           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
proc                 /proc                proc       defaults,noatime              0 0
sysfs                /sys                 sysfs      noauto,noatime                0 0
debugfs              /sys/kernel/debug    debugfs    noauto,noatime                0 0
usbfs                /proc/bus/usb        usbfs      noauto,noatime                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5,noatime       0 0

tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

noatime prevents updates of the accesstime on an access… it does not
prevent it from being seen/present. :slight_smile: The write (on every read) is
where performance is lost… not on reading. Thus that is the part which
is disabled with noatime.

A proper test is to read the file and then observe that the access time is
NOT changing.

Good luck.

On 11/09/2010 09:36 AM, dan8029 wrote:
>
> Hi everyone,
>
> I have an SSD and I’m trying to set noatime to save writes. I didn’t do
> this at the time of install, so I edited /etc/fstab later on. I noticed,
> however, that when I right-click on a file and view its properties, it
> still gives me a “modified” and “accessed” time. Did I do something
> wrong? Here is my fstab:
>
>
> Code:
> --------------------
>
> /dev/disk/by-id/ata-INTEL_SSDSA2M080G2GN_CVPO0161048A080JGN-part1 / reiserfs acl,user_xattr,noatime 1 1
> /dev/disk/by-id/ata-INTEL_SSDSA2M080G2GN_CVPO0161048A080JGN-part2 /home reiserfs acl,user_xattr,noatime 1 2
> /dev/disk/by-id/ata-INTEL_SSDSA2M080G2GN_CVPO0161048A080JGN-part4 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
> proc /proc proc defaults,noatime 0 0
> sysfs /sys sysfs noauto,noatime 0 0
> debugfs /sys/kernel/debug debugfs noauto,noatime 0 0
> usbfs /proc/bus/usb usbfs noauto,noatime 0 0
> devpts /dev/pts devpts mode=0620,gid=5,noatime 0 0
>
> tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0
> tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
> tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0
>
> --------------------
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJM2YZhAAoJEF+XTK08PnB5ERsP/1fj1cjvHcsm1D6ozh/rArWT
vE6IpkN/4jykTOqhLp2C1yr0UfSiec2prWNQAddUy0as8VHHFqEL35JzFz2Ec9A7
iyfp4SS/04krXIsWj8MKr7XNxogQv541TBRi6Jj43+EvKlcthZxYCTRKRe1QZ2xb
GkO/EsBv5W9wSI3ZgxYMOAu9+xZQyg4EhlWa9EVB8/aJy/ibjb8OatbfGXLUFW4G
b3nAp/IrE0rptr/AHIAjXplenMRlwUqjlvY5KFtbULgw2EYOZOKslgp9ub8NcXqh
AXcSwoC2ejCRaMHOnHozGN6ZnCYjB0JWAe3dbEiwP2gi47BS79VA5Ctn+6AAWrA4
ru8JJSeJ4f4QpRWOi1+U7yzOJS1R26zragdcmUoEE5rr12JJlK6/oVRNvBJM5DGS
7NpEwar8bJE8iveoHEzZJ4bMnNqNMYEeSiGPvul53Rf3vG5NURPxNukebUA8K6B/
IjK/HC3Ip+taY7ZknwXPMQ4MB5vbBsYQY9u4F3gZ4Mr/YerTptmyLd8QsIndRZdj
W5C8PpdXn1sPqa1zFn+lg9PRMI8nMMLW20RTMQS8vQqIzir0mx02WNixBizz/GrQ
0Emj0spbi7pDf5DC6rs3WiaUEiWrj5AdZ5wAXm8gR4Cw6LF1TKeXpLGNiwCCPcTw
qFcPpBd2feEjaYXQtN+i
=9NEs
-----END PGP SIGNATURE-----

Oh, you’re right. The access time of my files is never changing. It must be set up right. Thanks for the help!

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Glad to hear it. Thank-you for posting back a confirmation.

Good luck.

On 11/09/2010 04:06 PM, dan8029 wrote:
>
> Oh, you’re right. The access time of my files is never changing. It must
> be set up right. Thanks for the help!
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJM2ddbAAoJEF+XTK08PnB5XjcQALEaKAl5ZNKbmcr9axKszZOl
a5fceHsKueaSEeFLtTabno9fgU7UAxRr+uoUGLqyshRfJD4XM2OujCDpUxKDnhO+
FGm0Fq3xVmI/FFdsCxjdVGRrMsDVSzrkn4hBjozI9SZPIhW+CjvA7uw73VeoX4lQ
opecjuzY6W1OXluK7gjWL3PfxQ4VqXzsRSPKBUd4uGcFtyjot2C1GM9loflIGBL/
fyhyKlVzYTzUWlUNikXrMmw2R/r63y37AeoDCVdv2mAezK8bGohR1mqaXUDD5VnL
kmH8+A4/U8DNd8UOJTfLppmY98yE/xNosV4yKhEOoL2wxs4cqsstY/qQ0Zi6O79e
AOWCMMnZCL0IqphlxN3jhxkf8m0C2p2Jo4LH0yq943/3qobRMXjKwg68g/8zUyWq
toHCYulZCjWMXG928KuiktYDqjpiumvBER228m8wpe6EO3lsvEh3Qf+4q4nr7Qyz
7E9Mh/ALhdw2ETtJ4fjpTHzrsX//K87/PK8zokDNEsPqW7gN1YNnANfeIslPzH7n
UHncXlYwcF9Q5Pqsk6Xyhc0sJI97RNJdACocrnaHAn3YXfd4MY6SBrdSkuh/aphE
zuV0Slx2DP40Vh0QPkSm3o59IqqA3t832HAxJjsC8i/tXqeBOntflao6Ev1RA388
IzlgtoqTelAAlIwtHR/r
=tqRb
-----END PGP SIGNATURE-----

Ooh can I ask one more question? I’m using ReiserFS. I love Reiser. Should I be using EXT2 though, on a SSD? I thought I should have a journaling FS such as Reiser because this is a laptop, and sometimes batteries die and stuff.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ext2 is a fine filesystem, but it doesn’t have journaling so it’s not what
you’re after. ext3 has journaling but I’d personally go for ext4 or xfs
as ext4 is ext3++ and xfs is just pretty stinkin’ neat. I do not think
any single filesystem has insane perks over others when it comes to
SSD,but ext4 has some definite perks over ext3 and xfs is great in its own
right.

Good luck.

On 11/09/2010 06:36 PM, dan8029 wrote:
>
> Ooh can I ask one more question? I’m using ReiserFS. I love Reiser.
> Should I be using EXT2 though, on a SSD? I thought I should have a
> journaling FS such as Reiser because this is a laptop, and sometimes
> batteries die and stuff.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJM2fz0AAoJEF+XTK08PnB5V88P/06/R9aDu9c478awMS8fvuec
ZgbX70Gihci+skZOV2qUP42XvOe8JsFjbTWCxg1uSOwrCvxeVj9CiOPW/2vIexon
6FN/KtvjrxOIvx0fuQYfKBk5NGTkNOOHdWp8yaPFHJ7b9TJ9YiN744PypFGaNmt4
FSG4jH5TGtLR3E5OKxmCrwXRlXoPWL5E6fDz1x5FzYa8ZBJAf3DTi8FrZKccBMjt
UkoliCWYQBsNq+E64oZUUvH6BzapH1hb7BwS0aw46pzm2b3BSU55Uz9Nx1vjp0Hx
sO6oAAUVv6c3yjzcwBbg4lpB6B5+7ih5Jhh+jBTmjy7qVrVOp4r5GjuwyKqTlu6X
n1RVtQdnZ41HGsSE00DBUKC6IDpUY/Q3lqKq0/AFpRo84IqSvBliU2tB8LHRU1mi
Zk7JH1/cOOmLuTXf4osxHZCQGtTmmoryaGevQK1Vm4L9+859PEEX+vcsa74c+62Z
Hi5B+VGycSAtpolJTNQ9bmWBEHcuKkrHr1kheDV7nGgvvL+Hd4T0j2sGhtZ8yxJb
EP2ARiVaXB4MaR4WTFDPCTtOgszxF7Yrw6nB4iVmK5aWZkvp2PaJx07XFJHzH5ML
6SIEMz1o+Sd7uJKFkp1hnCZ9dUcbsagFTaeGXo6nlh5DIVjvrs7TxtjEZZYbZgrU
/14unfo6FlvuNgOCdhtA
=8sjK
-----END PGP SIGNATURE-----

On 2010-11-10 03:01, ab@novell.com wrote:
> ext2 is a fine filesystem, but it doesn’t have journaling so it’s not what
> you’re after.

No journal could be a good thing on a flash drive, as the journal is
written often and in the same place, so it wears out. There should be
special devices that have the journal in battery backed RAM.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I’ve heard from several sources that the old concerns about writes with
journaling and swap are not justified, especially when compared with the
benefits that journals provide.

http://robert.penz.name/137/no-swap-partition-journaling-filesystem-on-a-ssd/

http://community.spiceworks.com/topic/107081

http://www.linuxfoundation.org/news-media/blogs/browse/2009/03/ssd’s-journaling-and-noatimerelatime

Anyway, seems to mostly be a thing of the past.

Good luck.

On 11/10/2010 06:39 AM, Carlos E. R. wrote:
> On 2010-11-10 03:01, ab@novell.com wrote:
>> ext2 is a fine filesystem, but it doesn’t have journaling so it’s not what
>> you’re after.
>
> No journal could be a good thing on a flash drive, as the journal is
> written often and in the same place, so it wears out. There should be
> special devices that have the journal in battery backed RAM.
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJM2sJ8AAoJEF+XTK08PnB5QOoP/R0mwlJnnvF/aO6aKfryQSOZ
x5GgjHpPPt92k68RIQX9WF9/tNECXqXAKEIaAFoQ8luvqORNnOgxjoaK7Fq+FWGD
syWpmyH82QKgkbqSY4kAU7AFwKdrqLbV1VW+U+biAdtE8l0wQR5S/N/21yqyLd+Y
4mN/1olBr1Zb6r3PRcG+8zQ0mxLgxOYjybNRRqBw7rJWNviT+32M2icOgFDwGgE/
K+aXfVc7STET9VtKqje9R1tgsUayYucXiRkcfBeptgokv0cVy4WYHoLCy/+QNxmt
Nq4U5B3xApoAC6IK60DfJ8Snlkf7DDCOYedglXxZcilUinPzpSlJjaAFjd3V+lgR
cYmkJ2ZDfDg+gkKEaZmonVZQ/Uli2A6DrTR8vaK5uXylIwP8vskaAy3VFXlgSud1
66SxMBzOZScjvkRmh8cQRSS39p5utW/f1VAtq8+XKjQtnGsNG1D0UshMBf3kZ5gu
cSrS1tJyDziPQ/2jg55dLyjk4eJ95dV9bg8FMduarlWaAV4z021tIlR7kzG0E4QC
lWjTDeb0PTNMDtq78e8v82XthwoGO54lVmGrHsLBkaDrx+GXNZ3L73EkaKndjqZE
yD1a11bYQ/yC6uMMLyOI/0ehws87+/0DAEIcvZk9ZJIilf3514EG/1g9ljaxPQTr
YsGim2A/HtmCOGV95EeA
=tqzP
-----END PGP SIGNATURE-----

Assuming that it is an SSD, and not some other kind of flash device, a journal shouldn’t really be a problem with newer devices. The controller does some level of remapping, and that limits the ‘re-writes to one physical location’ at the level of the actual flash device. Well, that’s what the experts say.

BTRFS has a special SSD mode of some kind, but BTRFS is a bit new and I’m sure that a minority interest option like SSD mode has received much less testing than ‘plain’ BTRFS, I’d say it was still probably a bit soon. And, the last results that I saw weren’t really much better, in terms of speed, than plain-BTRFS mode. Now speed isn’t really the main issue here, but write amplification/remapping is, but I get the impression that the SSD mode doesn’t do much yet (I think that it may only adjust block sizes, which might mean that it will never do anything in read speeds, but be useful in terms of writes).

If I had to do it today, I’d go with EXT4, but next year that might be BTRFS, I don’t know.