Are there any negative effects of disabling the Last Access timestamp?

21

2

In Windows, you can disable the last accessed timestamp by setting NtfsDisableLastAccessUpdate to 1, for instance by executing this from the command line (the computer must be restarted before it takes effect):

fsutil behavior set disablelastaccess 1

I want to do so there is less disk activity on c:\$logfile.

Might this cause any negative effects or problems?

Eric L

Posted 2010-10-16T15:33:47.253

Reputation: 1 365

It could mess up programs that sync files (i.e. dropbox) – user2813274 – 2015-01-20T18:40:59.797

Related discussion for Linux: https://en.wikipedia.org/w/index.php?title=Stat_%28system_call%29&oldid=511345005#Criticism_of_atime

– Mechanical snail – 2012-09-08T08:25:37.863

Answers

13

You wouldn't be able to tell if someone else was reading your files - for example if you had some sensitive data.

I can't think of an OS level command that would need last accessed. Backups check last modified and date created for example. But see @mythokia's answer for one case that might.

Given that it's disabled by default in Windows 7 (thanks @AndrejaKo) and Vista that indicates that (unless there are other changes to compensate) it's OK to turn it off.

I've just thought of a reason why it might be disabled in the new OSes. These have the new Windows Search installed by default. This scans the selected directories for changes and re-indexes new and changed files. This would have written lots of events to the log which might be a reason for disabling it. There's more information on why they stopped updating the Last Access time from Vista onwards in MSDN blog post Why doesn't the file system have a function that tells you the number of files in a directory?.

ChrisF

Posted 2010-10-16T15:33:47.253

Reputation: 39 650

2I'm on fresh installation of windows 7 64bit here and NtfsDisableLastAccessUpdate is set to 1 by default. – AndrejaKo – 2010-10-16T16:30:23.710

The Search indexer doesn't constantly scan for changes, it uses the NTFS change journal. Otherwise an excellent answer. – afrazier – 2010-10-16T19:44:15.613

@afrazier - removed the "continually" – ChrisF – 2010-10-16T20:01:08.093

@maaartinus "You probably should disable it on SSD" Why? – Inigo – 2018-10-04T13:38:38.283

@Inigo Because it causes tons of tiny writes and tiny writes cause no less wear than normal writes. Seven years later, the wear is of much less concern. – maaartinus – 2018-10-04T15:39:15.920

3You probably should disable it on SSD. – maaartinus – 2011-04-24T16:39:14.537

You wouldn't be able to tell if someone else was reading your files   You can’t anyway; in my experience the timestamp is touched from almost every activity, including viewing a directory listing (at least in Windows; dir on a FAT32 volume in DOS does not update it). This renders the attribute effectively useless since it will always report just right now for everything, unless perhaps if you are viewing it “offline” (e.g., through a hex-editor instead of mounted in Windows). – Synetech – 2013-08-19T20:39:27.620

9

Some defragmentation programs do use last access as one of the variables of their algorithms. An example would be O&O Defrag.

hitsuyashi

Posted 2010-10-16T15:33:47.253

Reputation: 393

Oh yes - put most recently used files where they're quickest to access. Good point. – ChrisF – 2010-10-16T17:17:39.350

-2

Don't know about negative effects, but some of these answers are just plain wrong (namely, ChrisF's and Synetech's).

Proof:

  1. my desktop's desktop.ini file, for instance, has different timestamps for all entries (created, modified and accessed), while other files in the same folder have either the same timestamps for all entries, or just for 2 entries (e.g.: same created and accessed timestamps, different modified timestamp (typically, dl'ed files));
  2. performing a dir command on my desktop folder doesn't change any timestamp;

So:

  1. in (my) Windows 7 (x64 sp1), last access timestamp is not disabled;
  2. dir does not touch timestamps on NTFS, either;

user410485

Posted 2010-10-16T15:33:47.253

Reputation: 1

1All you have to do is run regedit.exe, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem and look at the value of NtfsDisableLastAccessUpdate to actually verify. Meanwhile, same created and accessed timestamps suggests that is indeed disabled. – George Marian – 2015-08-08T16:52:32.953