Re: [e-users] umount external sub does not work because enlightenment process keeps file open
On Sat, 19 Sep 2015 17:02:27 +0200 (CEST) Peter Koellnersaid: this is evas's cache holding onto file handles even when not referenced. evas has a cache that has 2 parts. active (referenced) files - this is a hash where to avoid re-loading the same file we just look it up in our in-memory hash and reference the existing copy. for images that go to a reference count of 0 - not needed anymore, they go into a LRU (least recently used) list. this keeps a limited AMOUNT of data (in MB - where this is not the file size byt the memory size when decoded into pixels). the least recently used items are released once we exceed our cache size limits. this has always been there in evas to avoid re-loading data from disk all the time when we need it again soon after not needing it anymore. this is one of those black-magic bits of efl and e that actually make it perform very well. the problem is - it's holding onto the files e displayed in its preview popup in the cache. yes - there are api's to flush the cache/set its size etc. there is config in e under "advanced" that lets you set cache sizes and a cache flush interval (e will expunge all 0 ref count items every N ticks. 1 tick = 1/8th of a second). so lower flush interval ad the problem will go away for now. or well drop it to 8 ticks and after 1 second your unmounting will work happily. :) > Hi! > > I just had the effect that I can't unmount an external USB drive after > opening one of the files in there from the file manager window, neither from > shell nor from the desktop disc icon menu. > > peter@kropotkin:~$ umount /media/peter/TOSHIBA\ EXT > Error unmounting block device 8:17: > GDBus.Error:org.freedesktop.UDisks2.Error.DeviceBusy: Error > unmounting /dev/sdb1: Command-line `umount "/media/peter/TOSHIBA EXT"' > exited with non-zero exit status 32: umount: /media/peter/TOSHIBA EXT: target > is busy (In some cases useful info about processes that use the device is > found by lsof(8) or fuser(1).) > > > I have closed the atril viewer, but lsof +D /media/.../topdir says that the > enlightenment process still has the file open: > > peter@kropotkin:~$ lsof +D /media/peter/TOSHIBA\ EXT/ > COMMANDPID USER FD TYPE DEVICE SIZE/OFF NODE NAME > enlighten 3800 peter 127r REG 8,17 7918 101096 /media/peter/TOSHIBA > EXT/Empresa/2015/q3/Gastos/aaa/x/yy.pdf > > The effect is reproducible by clicking on the desktop disc icon and > double-clicking on some PDF document. The atril viewer pops up. After closing > the viewer I get the following result: > > peter@kropotkin:~$ lsof +D /media/peter/TOSHIBA\ EXT/ > COMMANDPID USER FD TYPE DEVICE SIZE/OFF NODE NAME > enlighten 3800 peter 75r REG 8,17 1772495 35 /media/peter/TOSHIBA > EXT/doc/TOSHIBA CANVIO BASICS.PDF enlighten 3800 peter 127r REG 8,17 > 7918 101096 /media/peter/TOSHIBA > EXT/Empresa/2015/q3/Gastos/aaa/x/yy.pdf > > > atril is no longer running at this point. > > I have efl and elementary 1.15.1 and enlightenment 0.19.9 installed... > > Any ideas? > > > -- > peter kollner > > -- > ___ > enlightenment-users mailing list > enlightenment-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-users > -- - Codito, ergo sum - "I code, therefore I am" -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- ___ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users
[e-users] umount external sub does not work because enlightenment process keeps file open
Hi! I just had the effect that I can't unmount an external USB drive after opening one of the files in there from the file manager window, neither from shell nor from the desktop disc icon menu. peter@kropotkin:~$ umount /media/peter/TOSHIBA\ EXT Error unmounting block device 8:17: GDBus.Error:org.freedesktop.UDisks2.Error.DeviceBusy: Error unmounting /dev/sdb1: Command-line `umount "/media/peter/TOSHIBA EXT"' exited with non-zero exit status 32: umount: /media/peter/TOSHIBA EXT: target is busy (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1).) I have closed the atril viewer, but lsof +D /media/.../topdir says that the enlightenment process still has the file open: peter@kropotkin:~$ lsof +D /media/peter/TOSHIBA\ EXT/ COMMANDPID USER FD TYPE DEVICE SIZE/OFF NODE NAME enlighten 3800 peter 127r REG 8,17 7918 101096 /media/peter/TOSHIBA EXT/Empresa/2015/q3/Gastos/aaa/x/yy.pdf The effect is reproducible by clicking on the desktop disc icon and double-clicking on some PDF document. The atril viewer pops up. After closing the viewer I get the following result: peter@kropotkin:~$ lsof +D /media/peter/TOSHIBA\ EXT/ COMMANDPID USER FD TYPE DEVICE SIZE/OFF NODE NAME enlighten 3800 peter 75r REG 8,17 1772495 35 /media/peter/TOSHIBA EXT/doc/TOSHIBA CANVIO BASICS.PDF enlighten 3800 peter 127r REG 8,17 7918 101096 /media/peter/TOSHIBA EXT/Empresa/2015/q3/Gastos/aaa/x/yy.pdf atril is no longer running at this point. I have efl and elementary 1.15.1 and enlightenment 0.19.9 installed... Any ideas? -- peter kollner-- ___ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users
Re: [e-users] umount external sub does not work because enlightenment process keeps file open
On Saturday 19 Sep 2015 16:02:27 Peter Koellner wrote: > Hi! > > I just had the effect that I can't unmount an external USB drive after > opening one of the files in there from the file manager window, neither > from shell nor from the desktop disc icon menu. > > peter@kropotkin:~$ umount /media/peter/TOSHIBA\ EXT > Error unmounting block device 8:17: > GDBus.Error:org.freedesktop.UDisks2.Error.DeviceBusy: Error unmounting > /dev/sdb1: Command-line `umount "/media/peter/TOSHIBA EXT"' exited with > non-zero exit status 32: umount: /media/peter/TOSHIBA EXT: target is busy > (In some cases useful info about processes that > use the device is found by lsof(8) or fuser(1).) > > > I have closed the atril viewer, but lsof +D /media/.../topdir says that the > enlightenment process still has the file open: > > peter@kropotkin:~$ lsof +D /media/peter/TOSHIBA\ EXT/ > COMMANDPID USER FD TYPE DEVICE SIZE/OFF NODE NAME > enlighten 3800 peter 127r REG 8,17 7918 101096 > /media/peter/TOSHIBA EXT/Empresa/2015/q3/Gastos/aaa/x/yy.pdf > > The effect is reproducible by clicking on the desktop disc icon and > double-clicking on some PDF document. The atril viewer pops up. After > closing the viewer I get the following result: > > peter@kropotkin:~$ lsof +D /media/peter/TOSHIBA\ EXT/ > COMMANDPID USER FD TYPE DEVICE SIZE/OFF NODE NAME > enlighten 3800 peter 75r REG 8,17 1772495 35 > /media/peter/TOSHIBA EXT/doc/TOSHIBA CANVIO BASICS.PDF enlighten 3800 > peter 127r REG 8,17 7918 101096 /media/peter/TOSHIBA > EXT/Empresa/2015/q3/Gastos/aaa/x/yy.pdf > > > atril is no longer running at this point. > > I have efl and elementary 1.15.1 and enlightenment 0.19.9 installed... > > Any ideas? I posted about the same problem a month or two ago, but with efl, elementary on 1.15.0 and enlightenment on 0.19.8. If I hover over certain files, e.g. pdf, I can no longer unmount the USB drive. enlightenment seems to be holding onto it for some reason, well after the hover over preview has stopped. I am guessing it is a bug. -- Regards, Mick -- ___ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users