LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   gvfsd misbehaving and thrashing SSDs. (https://www.linuxquestions.org/questions/slackware-14/gvfsd-misbehaving-and-thrashing-ssds-4175479445/)

SpeedEvil 10-03-2013 07:01 AM

gvfsd misbehaving and thrashing SSDs.
 
I hit this a couple of days ago - on a newly upgraded to current slackware 14 64 bit system.

In short - gvfsd-metadata gets confused, and thrashes the disk, creating and deleting files.
https://bugzilla.gnome.org/show_bug.cgi?id=637095 seems relevant - and I think it's fixed in their tree.

I moved the dir in question onto a ramdisk - in the hopes that it was just a one-off and restarted the daemon - but something seemed to trigger it.

% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
20.92 0.002901 0 189762 open
In 10 seconds

Quote:

statfs("/home/user/.local/share/gvfs-metadata", {f_type=0x1021994, f_bsize=4096, f_blocks=979772, f_bfree=979753, f_bavail=979753, f_files=979772, f_ffree=979766, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
open("/home/user/.local/share/gvfs-metadata/home", O_RDONLY) = 6
fstat(6, {st_mode=S_IFREG|0600, st_size=260, ...}) = 0
mmap(NULL, 260, PROT_READ, MAP_SHARED, 6, 0) = 0x7f5446adf000
statfs("/home/user/.local/share/gvfs-metadata", {f_type=0x1021994, f_bsize=4096, f_blocks=979772, f_bfree=979753, f_bavail=979753, f_files=979772, f_ffree=979766, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
open("/home/user/.local/share/gvfs-metadata/home-0c3632e5.log", O_RDWR) = 8
fstat(8, {st_mode=S_IFREG|0644, st_size=32768, ...}) = 0
mmap(NULL, 32768, PROT_READ|PROT_WRITE, MAP_SHARED, 8, 0) = 0x7f5446ad7000
open("/home/user/.local/share/gvfs-metadata/home.VE1UEY", O_RDWR|O_CREAT|O_EXCL, 0600) = 9
write(9, "\332\32meta\1\0\0\0\0\0008\24)X\0\0\0008\0\0\0 \0\0\0\0RL<\200\0\0\0\1\0\0\0(download-uri\0\0\0\0\0\0\0H\0\0\0L\0\0\0\0\0\0\0\0/\0\0\0\0\0\0\1\0\0\0`\0\0\0l\0\0\0\0\0\0\0\0Downloads\0\0\0\0\0\0\1\0\0\0\200\0\0\0\0\0\0\0\240\0\0\ 0\1blender-2.46-i386-1alien.tgz\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\254http://www.slackware.com/~alien/slackbuilds/blender/pkg/blender-2.46-i386-1alien.tgz\0\0\0\0", 260) = 260
fsync(9) = 0
close(9) = 0
statfs("/home/user/.local/share/gvfs-metadata", {f_type=0x1021994, f_bsize=4096, f_blocks=979772, f_bfree=979752, f_bavail=979752, f_files=979772, f_ffree=979765, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
open("/home/user/.local/share/gvfs-metadata/home-38142958.log.BK1UEY", O_RDWR|O_CREAT|O_EXCL, 0666) = 9
fallocate(9, 0, 0, 32768) = 0
write(9, "\332\32jour\1\0008\24)X\0\0\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0... all null, 32768) = 32768
fstatfs(9, {f_type=0x1021994, f_bsize=4096, f_blocks=979772, f_bfree=979739, f_bavail=979739, f_files=979772, f_ffree=979764, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
lstat("/home/user/.local/share/gvfs-metadata/home-38142958.log", 0x7ffffcd008b0) = -1 ENOENT (No such file or directory)
close(9) = 0
rename("/home/user/.local/share/gvfs-metadata/home-38142958.log.BK1UEY", "/home/user/.local/share/gvfs-metadata/home-38142958.log") = 0
open("/home/user/.local/share/gvfs-metadata/home", O_RDWR) = 9
rename("/home/user/.local/share/gvfs-metadata/home.VE1UEY", "/home/user/.local/share/gvfs-metadata/home") = 0
open("/home/user/.local/share/gvfs-metadata", O_RDONLY) = 10
fsync(10) = 0
close(10) = 0
mmap(NULL, 16, PROT_READ|PROT_WRITE, MAP_SHARED, 9, 0) = 0x7f5446ad6000
munmap(0x7f5446ad6000, 16) = 0
close(9) = 0
statfs("/home/user/.local/share/gvfs-metadata", {f_type=0x1021994, f_bsize=4096, f_blocks=979772, f_bfree=979739, f_bavail=979739, f_files=979772, f_ffree=979764, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
unlink("/home/user/.local/share/gvfs-metadata/home-0c3632e5.log") = 0
munmap(0x7f5446ad7000, 32768) = 0
close(8) = 0
munmap(0x7f5446adf000, 260) = 0
close(6) = 0
statfs("/home/user/.local/share/gvfs-metadata", {f_type=0x1021994, f_bsize=4096, f_blocks=979772, f_bfree=979748, f_bavail=979748, f_files=979772, f_ffree=979766, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
open("/home/user/.local/share/gvfs-metadata/home", O_RDONLY) = 6
fstat(6, {st_mode=S_IFREG|0600, st_size=260, ...}) = 0
mmap(NULL, 260, PROT_READ, MAP_SHARED, 6, 0) = 0x7f5446adf000
statfs("/home/user/.local/share/gvfs-metadata", {f_type=0x1021994, f_bsize=4096, f_blocks=979772, f_bfree=979748, f_bavail=979748, f_files=979772, f_ffree=979766, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
open("/home/user/.local/share/gvfs-metadata/home-38142958.log", O_RDWR) = 8
fstat(8, {st_mode=S_IFREG|0644, st_size=32768, ...}) = 0
mmap(NULL, 32768, PROT_READ|PROT_WRITE, MAP_SHARED, 8, 0) = 0x7f5446ad7000
open("/home/user/.local/share/gvfs-metadata/home.MOYUEY", O_RDWR|O_CREAT|O_EXCL, 0600) = 9
write(9, "\332\32meta\1\0\0\0\0\0\271j\260\231\0\0\0008\0\0\0 \0\0\0\0RL<\200\0\0\0\1\0\0\0(download-uri\0\0\0\0\0\0\0H\0\0\0L\0\0\0\0\0\0\0\0/\0\0\0\0\0\0\1\0\0\0`\0\0\0l\0\0\0\0\0\0\0\0Downloads\0\0\0\0\0\0\1\0\0\0\200\0\0\0\0\0\0\0\240\0\0\ 0\1blender-2.46-i386-1alien.tgz\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\254http://www.slackware.com/~alien/slackbuilds/blender/pkg/blender-2.46-i386-1alien.tgz\0\0\0\0", 260) = 260
fsync(9) = 0
close(9) = 0
statfs("/home/user/.local/share/gvfs-metadata", {f_type=0x1021994, f_bsize=4096, f_blocks=979772, f_bfree=979746, f_bavail=979746, f_files=979772, f_ffree=979765, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
open("/home/user/.local/share/gvfs-metadata/home-b96ab099.log.3MYUEY", O_RDWR|O_CREAT|O_EXCL, 0666) = 9
fallocate(9, 0, 0, 32768) = 0
write(9, "\332\32jour\1\0\271j\260\231\0\0\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
... all null
0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 32768) = 32768
fstatfs(9, {f_type=0x1021994, f_bsize=4096, f_blocks=979772, f_bfree=979733, f_bavail=979733, f_files=979772, f_ffree=979764, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
lstat("/home/user/.local/share/gvfs-metadata/home-b96ab099.log", 0x7ffffcd008b0) = -1 ENOENT (No such file or directory)
close(9) = 0
rename("/home/user/.local/share/gvfs-metadata/home-b96ab099.log.3MYUEY", "/home/user/.local/share/gvfs-metadata/home-b96ab099.log") = 0
open("/home/user/.local/share/gvfs-metadata/home", O_RDWR) = 9
rename("/home/user/.local/share/gvfs-metadata/home.MOYUEY", "/home/user/.local/share/gvfs-metadata/home") = 0
open("/home/user/.local/share/gvfs-metadata", O_RDONLY) = 10
fsync(10) = 0
close(10) = 0
mmap(NULL, 16, PROT_READ|PROT_WRITE, MAP_SHARED, 9, 0) = 0x7f5446ad6000
munmap(0x7f5446ad6000, 16) = 0
close(9) = 0
statfs("/home/user/.local/share/gvfs-metadata", {f_type=0x1021994, f_bsize=4096, f_blocks=979772, f_bfree=979733, f_bavail=979733, f_files=979772, f_ffree=979764, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
unlink("/home/user/.local/share/gvfs-metadata/home-38142958.log") = 0
munmap(0x7f5446ad7000, 32768) = 0
close(8) = 0
munmap(0x7f5446adf000, 260) = 0
close(6) = 0
This cycle then repeats - it's not touching any files outside of this dir.

bartgymnast 10-04-2013 02:40 AM

Hi SpeedEvil,

as far as I can see the bug you reffered to is relevant to your issue.
There are a few options for you to fix this.

1. Download the Slackbuild source file for gvfs, and include the patches that are reffered to in the bug report.
2. same as above but ask pat to include those fixes in -current
2. Ask/wait for pat to update gvfs to 1.18.x (this would also mean updating glib (hard dep) and some other libraries to the new stable series, that got released last week.)
3. Update yourself to gvfs 1.18.x and update the required dependencies aswell.

Dependecy list is as follows: (could miss a package)

glib-2.38.x
libarchive-3.x (without libarchive-3.x or option --disable-archive added to configure, your make will fail)


All times are GMT -5. The time now is 07:31 AM.