Questions tagged [atime]

32 questions
17
votes
2 answers

Does using noatime on modern Linux make sense?

Starting from version 2.6.30 (which was released 5 years ago), Linux has the option relatime enabled by default. It means updates of file access time are very infrequent and prudent. But I still see recommendations to use noatime for databases or…
valodzka
  • 405
  • 3
  • 8
11
votes
3 answers

Why is sorting files by access time not working?

I tried to use command ls --time=atime it was working in one directory but wasn't working in another directory. I opened certain files in vim, evince and other applications but after the command file access times weren't changed. When I type touch…
xralf
  • 16,149
  • 29
  • 101
  • 149
7
votes
1 answer

Check last time .sh file used

When you run ./myscript.sh is that considered as "access" time? I need to know the last time a script was run, but I'm not sure if this counts as mtime, ctime or atime (differences described here).
Andrejs
  • 315
  • 2
  • 4
  • 10
7
votes
1 answer

Can "find" command preserve access-time

I'm running the following command which is supposed to find specific directories according to their Access-Time metadata detail however for some reason the find command changes the access time of these directories. find /my/directory/ -mindepth 3…
Nir Ben-Or
  • 73
  • 3
6
votes
1 answer

Does a typical single-user desktop Linux system have apps requiring atime?

I've just: Does using noatime on modern Linux make sense? and I'm interpreting the answer there as follows: "If you don't have applications that depend on atime's being valid, you don't need them." Thinking about my home Linux system, which doesn't…
einpoklum
  • 8,772
  • 19
  • 65
  • 129
6
votes
1 answer

Why does my file have multiple crtime entries?

Using ext4 filesystem I was able to read out the creation time of a file using the approach here. As a result I am indeed provided with a table featuring the crtime (creation time) of the inode(respective file) in question. What confuses me and to…
humanityANDpeace
  • 13,722
  • 13
  • 61
  • 107
6
votes
1 answer

Why is EXT4 filesystem mounted with both relatime and lazytime

I'm running Debian/Testing, with kernel 4.4: # uname -a Linux shaula 4.4.0-1-amd64 #1 SMP Debian 4.4.6-1 (2016-03-17) x86_64 GNU/Linux So I want to use the lazytime mount option, which is why I put the following in my /etc/fstab: # grep…
andreas-h
  • 649
  • 1
  • 8
  • 12
6
votes
2 answers

How can I tell if a directory is mounted with noatime or nodirtime?

I work with an NFS partition on a mac. Commands like du take a very long time, and I was considering unmounting the NFS and remounting it with noatime and nodirtime. The partitions have been mounted since I started my job, so I don't know if the NFS…
Dan
  • 9,372
  • 5
  • 25
  • 39
5
votes
1 answer

Is there software relying on `strictatime`?

I am preparing to implement a filesystem in FUSE. Implementing only one mode would be easier. Relatime is the default behavior of all kernel implemented filesystems. Is strictatime behavior still necessary to be implemented? Is there any existing…
ArekBulski
  • 443
  • 2
  • 15
4
votes
1 answer

List of applications that require atime

Without digging into the rationale behind access time tracking, its write-amplification effects in particular for SSDs, or the fact that it can be somewhat mitigated by the relatime and lazytime mount options: Can we produce a list of the (allegedly…
akobel
  • 141
  • 3
4
votes
1 answer

Cache atime writes

Is there a way to set atime writes to be cached for a very long time? I need atime (that is to say, relatime won't cut it), but I don't want it to effect performance so much. Data loss in of atimes (and atimes only) is acceptable in some cases (e.g.…
Tyler
  • 368
  • 1
  • 2
  • 8
4
votes
2 answers

File access time not updating in ubuntu 12.04

After using the cat command to read a file, I used the stat command to view it's changed access time, but it's not getting updated. I checked /etc/fstab file and there is no noatime on any of my drives, so why is the access time not getting…
Cody
  • 143
  • 1
  • 7
3
votes
1 answer

ls -lu does not give last access time

The manpage of ls says: -u with -lt: sort by, and show, access time; with -l: show access time and sort by name; otherwise: sort by access time but that doesn't seem to work: test@debian:~$ date > file test@debian:~$ date Sun Jan…
viuser
  • 2,564
  • 3
  • 29
  • 57
3
votes
2 answers

On touching a new file why is mtime and ctime older than atime?

I have this: $ ls -l ff ls: cannot access ff: No such file or directory $ touch ff $ stat ff File: `ff' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 803h/2051d Inode: 1057193 Links: 1 Access:…
Ankur Agarwal
  • 3,108
  • 10
  • 35
  • 52
3
votes
1 answer

Recover atime after vim

I've vimed a file, and only afterwards realised that I need the atime (last access time) for the file. Is there any way to recover the atime for a file after accessing it inadvertently? The filesystem is mounted as so: UUID=XXXX /home ext4…
dotancohen
  • 15,494
  • 26
  • 80
  • 116
1
2 3