[Gluster-devel] stat access does not change
Vincent Régnard
vregnard at tbs-internet.com
Fri Nov 9 10:42:08 UTC 2007
Hi everybody,
Seems here that access timestamp is not modified as expected on our
gluster file system after file is opened. Can you reproduce this behaviour ?
$ stat TBSX509CApersona2.crl
File: `TBSX509CApersona2.crl'
Size: 1324 Blocks: 16 IO Block: 1048576 regular file
Device: ch/12d Inode: 3604584 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 7886/cliprodcerts) Gid: (
7886/cliprodcerts)
Access: 2007-11-09 08:29:34.000000000 +0000
Modify: 2007-11-09 10:06:32.000000000 +0000
Change: 2007-11-09 10:06:32.000000000 +0000
$ cat TBSX509CApersona2.crl
$ stat TBSX509CApersona2.crl
File: `TBSX509CApersona2.crl'
Size: 1324 Blocks: 16 IO Block: 1048576 regular file
Device: ch/12d Inode: 3604584 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 7886/cliprodcerts) Gid: (
7886/cliprodcerts)
Access: 2007-11-09 08:29:34.000000000 +0000
Modify: 2007-11-09 10:06:32.000000000 +0000
Change: 2007-11-09 10:06:32.000000000 +0000
$ vi TBSX509CApersona2.crl (and save file)
$ stat TBSX509CApersona2.crl
File: `TBSX509CApersona2.crl'
Size: 1324 Blocks: 16 IO Block: 1048576 regular file
Device: ch/12d Inode: 3604586 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 7886/cliprodcerts) Gid: (
7886/cliprodcerts)
Access: 2007-11-09 10:13:12.000000000 +0000
Modify: 2007-11-09 10:13:12.000000000 +0000
Change: 2007-11-09 10:13:12.000000000 +0000
$ vi TBSX509CApersona2.crl (just read file)
$ stat TBSX509CApersona2.crl
File: `TBSX509CApersona2.crl'
Size: 1324 Blocks: 16 IO Block: 1048576 regular file
Device: ch/12d Inode: 3604586 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 7886/cliprodcerts) Gid: (
7886/cliprodcerts)
Access: 2007-11-09 10:13:12.000000000 +0000
Modify: 2007-11-09 10:13:12.000000000 +0000
Change: 2007-11-09 10:13:12.000000000 +0000
My config is gluster 1.3.7/fuse2.7.0-glfs5, linux 2.6.16.55. We have 3
clients and 3 servers (1 client and 1 server on each host) on a 100Mb
network with 5ms round trip between clients and servers. The 3 clients
replicate with afr on client side over the 3 servers.
On servers I have his stack:
storage/posix
features/posix-locks
performance/io-threads
protocol/server
On clients I have this stack:
protocol/client(*3)
cluster/afr
performance/io-threads
performance/io-cache
performance/write-behind
$ stat --version
stat (coreutils) 5.0
$ strace cat TBSX509CApersona2.crl
execve("/bin/cat", ["cat", "TBSX509CApersona2.crl"], [/* 23 vars */]) = 0
uname({sys="Linux", node="[HIDDEN]", ...}) = 0
brk(0) = 0x804d000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=14117, ...}) = 0
old_mmap(NULL, 14117, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f4f000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300T\1"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=21026567, ...}) = 0
old_mmap(NULL, 1146164, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7e37000
old_mmap(0xb7f49000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x112000) = 0xb7f49000
old_mmap(0xb7f4d000, 7476, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f4d000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7e36000
mprotect(0xb7f49000, 8192, PROT_READ) = 0
mprotect(0xb7f65000, 4096, PROT_READ) = 0
munmap(0xb7f4f000, 14117) = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=48246400, ...}) = 0
mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7c36000
mmap2(NULL, 204800, PROT_READ, MAP_PRIVATE, 3, 0xc27) = 0xb7c04000
brk(0) = 0x804d000
brk(0x806e000) = 0x806e000
mmap2(NULL, 4096, PROT_READ, MAP_PRIVATE, 3, 0xc70) = 0xb7c03000
close(3) = 0
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 3), ...}) = 0
open("TBSX509CApersona2.crl", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0664, st_size=1324, ...}) = 0
old_mmap(NULL, 1052672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7b02000
read(3, "-----BEGIN X509 CRL-----\nMIIDqTC"..., 1048576) = 1324
write(1, "-----BEGIN X509 CRL-----\nMIIDqTC"..., 1324-----BEGIN X509
CRL-----
[HIDDEN]
-----END X509 CRL-----
) = 1324
read(3, "", 1048576) = 0
munmap(0xb7b02000, 1052672) = 0
close(3) = 0
close(1) = 0
--
Vincent Régnard
vregnard at tbs-internet.com
TBS-internet.com
027 630 5902
More information about the Gluster-devel
mailing list