Re: [e-users] umount external sub does not work because enlightenment process keeps file open

2015-09-22 Thread Mick
On Tuesday 22 Sep 2015 07:42:49 Carsten Haitzler wrote:
> On Tue, 22 Sep 2015 06:42:26 +0100 Mick  said:
> > On Tuesday 22 Sep 2015 05:14:42 Carsten Haitzler wrote:
> > > On Mon, 21 Sep 2015 22:22:05 +0100 Mick  
said:
> > > > CRI<3592>: lib/eldbus/eldbus_pending.c:257 eldbus_pending_cancel()
> > > > *** Eina Magic Check Failed at 0xd4b800 !!!
> > > > 
> > > > Input handle is wrong type
> > > > Expected: db050004 - Eldbus_Pending
> > > > Supplied: 00d07450 - (unknown)
> > > > 
> > > > *** NAUGHTY PROGRAMMER!!!
> > > > *** SPANK SPANK SPANK!!!
> > > > *** Now go fix your code. Tut tut tut!
> > > > 
> > > > The first error was caused when I closed EFM.  The second when I
> > > > right clicked to unmount it.
> > > 
> > > i'm just going to make e flush all caches before any unmount... this
> > > should solve it.
> > 
> > I beg your pardon - the above error shows up when the timeout pop up
> > shows on the screen, which is a minute after efm is closed, or a minute
> > after I right click and select unmount.
> > 
> > lsof continuous to show that a pdf is hogging e; e.g. the following was
> > more than 7 minutes later, despite setting 'Cache flush interval' to 8
> > ticks:
> > 
> > $ lsof | grep /run/media/michael/VERBATIM32G
> > enlighten 3648 michael   71r  REG   8,17
> > 126982 72 /run/media/michael/VERBATIM32G/News/koo-150715e.pdf
> > enlighten 3648 3649michael   71r  REG   8,17
> > 126982 72 /run/media/michael/VERBATIM32G/News/koo-150715e.pdf
> > enlighten 3648 3654michael   71r  REG   8,17
> > 126982 72 /run/media/michael/VERBATIM32G/News/koo-150715e.pdf
> > enlighten 3648 3655michael   71r  REG   8,17
> > 126982 72 /run/media/michael/VERBATIM32G/News/koo-150715e.pdf
> > enlighten 3648 3656michael   71r  REG   8,17
> > 126982 72 /run/media/michael/VERBATIM32G/News/koo-150715e.pdf
> 
> how on earth do you get multiple fd's opened? i only ever see a single one!
> as above - i just put a commit in master that has e flush caches on
> unmount.

Thanks Carsten!

I always get multiple fds.  The above was caused by me hovering over a single 
pdf file, once only.  :-/

-- 
Regards,
Mick
--
___
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

2015-09-22 Thread The Rasterman
On Tue, 22 Sep 2015 19:28:07 +0100 Mick  said:

> On Tuesday 22 Sep 2015 07:42:49 Carsten Haitzler wrote:
> > On Tue, 22 Sep 2015 06:42:26 +0100 Mick  said:
> > > On Tuesday 22 Sep 2015 05:14:42 Carsten Haitzler wrote:
> > > > On Mon, 21 Sep 2015 22:22:05 +0100 Mick  
> said:
> > > > > CRI<3592>: lib/eldbus/eldbus_pending.c:257 eldbus_pending_cancel()
> > > > > *** Eina Magic Check Failed at 0xd4b800 !!!
> > > > > 
> > > > > Input handle is wrong type
> > > > > Expected: db050004 - Eldbus_Pending
> > > > > Supplied: 00d07450 - (unknown)
> > > > > 
> > > > > *** NAUGHTY PROGRAMMER!!!
> > > > > *** SPANK SPANK SPANK!!!
> > > > > *** Now go fix your code. Tut tut tut!
> > > > > 
> > > > > The first error was caused when I closed EFM.  The second when I
> > > > > right clicked to unmount it.
> > > > 
> > > > i'm just going to make e flush all caches before any unmount... this
> > > > should solve it.
> > > 
> > > I beg your pardon - the above error shows up when the timeout pop up
> > > shows on the screen, which is a minute after efm is closed, or a minute
> > > after I right click and select unmount.
> > > 
> > > lsof continuous to show that a pdf is hogging e; e.g. the following was
> > > more than 7 minutes later, despite setting 'Cache flush interval' to 8
> > > ticks:
> > > 
> > > $ lsof | grep /run/media/michael/VERBATIM32G
> > > enlighten 3648 michael   71r  REG   8,17
> > > 126982 72 /run/media/michael/VERBATIM32G/News/koo-150715e.pdf
> > > enlighten 3648 3649michael   71r  REG   8,17
> > > 126982 72 /run/media/michael/VERBATIM32G/News/koo-150715e.pdf
> > > enlighten 3648 3654michael   71r  REG   8,17
> > > 126982 72 /run/media/michael/VERBATIM32G/News/koo-150715e.pdf
> > > enlighten 3648 3655michael   71r  REG   8,17
> > > 126982 72 /run/media/michael/VERBATIM32G/News/koo-150715e.pdf
> > > enlighten 3648 3656michael   71r  REG   8,17
> > > 126982 72 /run/media/michael/VERBATIM32G/News/koo-150715e.pdf
> > 
> > how on earth do you get multiple fd's opened? i only ever see a single one!
> > as above - i just put a commit in master that has e flush caches on
> > unmount.
> 
> Thanks Carsten!
> 
> I always get multiple fds.  The above was caused by me hovering over a single 
> pdf file, once only.  :-/

weird. i get a single fd only...

-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991=/4140
___
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

2015-09-21 Thread The Rasterman
On Mon, 21 Sep 2015 06:50:58 +0100 Mick  said:

> On Sunday 20 Sep 2015 23:43:18 Carsten Haitzler wrote:
> > On Sun, 20 Sep 2015 14:15:21 +0200 (CEST) Peter Koellner
> > 
> > 
> > said:
> > > Hi!
> > > 
> > > So I am in the menu at Preferencias (using spanish locale) -
> > > Preferencias (the one with the two crossed wrenches icon, not the other
> > > one with one wrench icon) -> Configure Elementary -> More -> Caches. Is
> > > that the right place? I didn't see anything under 'Avanzado', which
> > > would probably be the translation for 'advanced'.
> > > 
> > > There I see under Cache Flush Interval:
> > > 
> > > [x] Enable Flushing   - 512 ticks
> > > Font Cache Size - 0.5MB
> > > Image Cache Size - 4 MB
> > > Number of Edje Files to Cache - 32 files
> > > Number of Edge Collections to Cache - 64 collections
> > 
> > not elementary.
> > 
> > settings -> advanced -> performance
> > 
> > under "caches"
> > 
> > "cache flush interval" - default is 512 ticks. top slider.
> 
> Thanks Carsten, this the setting I altered, reduced it to 64 ticks,but the 
> problem remains.  PDF files, or image files (png) just get stuck listed 
> multiple times in lsof and are not released.  txt files have no such problem.

that's still 8 seconds. drop it to 8.

> A minute or more after I close EFM I get the usual pop up advising me that
> the USB could not be unmounted (org.enlightenment.fm2.UnmounTimeout).
> 
> I'm running efl/elementary 1.15.1 and enlightenment 0.19.10 at present, but 
> this problem is there for some time now.

ummm errr... it should work. i noticed when i nuked it to 8 the open fd went
away fast.


-- 
- 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


Re: [e-users] umount external sub does not work because enlightenment process keeps file open

2015-09-21 Thread The Rasterman
On Mon, 21 Sep 2015 22:22:05 +0100 Mick  said:

> On Monday 21 Sep 2015 07:52:00 Carsten Haitzler wrote:
> > On Mon, 21 Sep 2015 06:50:58 +0100 Mick  said:
> > > On Sunday 20 Sep 2015 23:43:18 Carsten Haitzler wrote:
> > > > On Sun, 20 Sep 2015 14:15:21 +0200 (CEST) Peter Koellner
> > > > 
> > > > 
> > > > said:
> > > > > Hi!
> > > > > 
> > > > > So I am in the menu at Preferencias (using spanish locale) -
> > > > > Preferencias (the one with the two crossed wrenches icon, not the
> > > > > other one with one wrench icon) -> Configure Elementary -> More ->
> > > > > Caches. Is that the right place? I didn't see anything under
> > > > > 'Avanzado', which would probably be the translation for 'advanced'.
> > > > > 
> > > > > There I see under Cache Flush Interval:
> > > > > 
> > > > > [x] Enable Flushing   - 512 ticks
> > > > > Font Cache Size - 0.5MB
> > > > > Image Cache Size - 4 MB
> > > > > Number of Edje Files to Cache - 32 files
> > > > > Number of Edge Collections to Cache - 64 collections
> > > > 
> > > > not elementary.
> > > > 
> > > > settings -> advanced -> performance
> > > > 
> > > > under "caches"
> > > > 
> > > > "cache flush interval" - default is 512 ticks. top slider.
> > > 
> > > Thanks Carsten, this the setting I altered, reduced it to 64 ticks,but
> > > the problem remains.  PDF files, or image files (png) just get stuck
> > > listed multiple times in lsof and are not released.  txt files have no
> > > such problem.
> > 
> > that's still 8 seconds. drop it to 8.
> > 
> > > A minute or more after I close EFM I get the usual pop up advising me
> > > that the USB could not be unmounted
> > > (org.enlightenment.fm2.UnmounTimeout).
> > > 
> > > I'm running efl/elementary 1.15.1 and enlightenment 0.19.10 at present,
> > > but this problem is there for some time now.
> > 
> > ummm errr... it should work. i noticed when i nuked it to 8 the open fd
> > went away fast.
> 
> Yes, it should, or at least it was in the past, but it doesn't right now.  I 
> dropped it down to 8 ticks.  PDFs or image files still won't let go.  A
> minute or so later the org.enlightenment.fm2.UnmounTimeout error pops up.
> The .enlightenment-errors file shows this:
> 
> E FM OPERATION CHANGED:
> ---
> E FM OPERATION FINISHED:
> ---
> E FM OPERATION CHANGED:
> ---
> E FM OPERATION FINISHED:
> ---
> CRI<3592>: lib/eldbus/eldbus_pending.c:257 eldbus_pending_cancel() *** Eina 
> Magic Check Failed at 0xd36af0 !!!
> Input handle is wrong type
> Expected: db050004 - Eldbus_Pending
> Supplied: 00d49070 - (unknown)
> *** NAUGHTY PROGRAMMER!!!
> *** SPANK SPANK SPANK!!!
> *** Now go fix your code. Tut tut tut!
> 
> 
> CRI<3592>: lib/eldbus/eldbus_pending.c:257 eldbus_pending_cancel() *** Eina 
> Magic Check Failed at 0xd4b800 !!!
> Input handle is wrong type
> Expected: db050004 - Eldbus_Pending
> Supplied: 00d07450 - (unknown)
> *** NAUGHTY PROGRAMMER!!!
> *** SPANK SPANK SPANK!!!
> *** Now go fix your code. Tut tut tut!
> 
> The first error was caused when I closed EFM.  The second when I right
> clicked to unmount it.

i'm just going to make e flush all caches before any unmount... this should
solve it.


-- 
- 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


Re: [e-users] umount external sub does not work because enlightenment process keeps file open

2015-09-21 Thread Mick
On Tuesday 22 Sep 2015 05:14:42 Carsten Haitzler wrote:
> On Mon, 21 Sep 2015 22:22:05 +0100 Mick  said:

> > CRI<3592>: lib/eldbus/eldbus_pending.c:257 eldbus_pending_cancel() ***
> > Eina Magic Check Failed at 0xd4b800 !!!
> > 
> > Input handle is wrong type
> > Expected: db050004 - Eldbus_Pending
> > Supplied: 00d07450 - (unknown)
> > 
> > *** NAUGHTY PROGRAMMER!!!
> > *** SPANK SPANK SPANK!!!
> > *** Now go fix your code. Tut tut tut!
> > 
> > The first error was caused when I closed EFM.  The second when I right
> > clicked to unmount it.
> 
> i'm just going to make e flush all caches before any unmount... this should
> solve it.

I beg your pardon - the above error shows up when the timeout pop up shows on 
the screen, which is a minute after efm is closed, or a minute after I right 
click and select unmount.

lsof continuous to show that a pdf is hogging e; e.g. the following was more 
than 7 minutes later, despite setting 'Cache flush interval' to 8 ticks:

$ lsof | grep /run/media/michael/VERBATIM32G 
enlighten 3648 michael   71r  REG   8,17 126982 

72 /run/media/michael/VERBATIM32G/News/koo-150715e.pdf
enlighten 3648 3649michael   71r  REG   8,17 126982 

72 /run/media/michael/VERBATIM32G/News/koo-150715e.pdf
enlighten 3648 3654michael   71r  REG   8,17 126982 

72 /run/media/michael/VERBATIM32G/News/koo-150715e.pdf
enlighten 3648 3655michael   71r  REG   8,17 126982 

72 /run/media/michael/VERBATIM32G/News/koo-150715e.pdf
enlighten 3648 3656michael   71r  REG   8,17 126982 

72 /run/media/michael/VERBATIM32G/News/koo-150715e.pdf

-- 
Regards,
Mick
--
___
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

2015-09-21 Thread Conrad Knight
> From: Carsten Haitzler (The Rasterman) 
> settings -> advanced -> performance
> under "caches"
> "cache flush interval" - default is 512 ticks. top slider.

I've run into this problem before, too. After reading this, I checked
this setting and it is still set to the default, which would be
slightly over a minute. I have been unable to unmount a USB stick 20
minutes after closing EFM. Either this setting is being ignored, or
something else is keeping the file open...

-Conrad.

--
___
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

2015-09-21 Thread Mick
On Monday 21 Sep 2015 07:52:00 Carsten Haitzler wrote:
> On Mon, 21 Sep 2015 06:50:58 +0100 Mick  said:
> > On Sunday 20 Sep 2015 23:43:18 Carsten Haitzler wrote:
> > > On Sun, 20 Sep 2015 14:15:21 +0200 (CEST) Peter Koellner
> > > 
> > > 
> > > said:
> > > > Hi!
> > > > 
> > > > So I am in the menu at Preferencias (using spanish locale) -
> > > > Preferencias (the one with the two crossed wrenches icon, not the
> > > > other one with one wrench icon) -> Configure Elementary -> More ->
> > > > Caches. Is that the right place? I didn't see anything under
> > > > 'Avanzado', which would probably be the translation for 'advanced'.
> > > > 
> > > > There I see under Cache Flush Interval:
> > > > 
> > > > [x] Enable Flushing   - 512 ticks
> > > > Font Cache Size - 0.5MB
> > > > Image Cache Size - 4 MB
> > > > Number of Edje Files to Cache - 32 files
> > > > Number of Edge Collections to Cache - 64 collections
> > > 
> > > not elementary.
> > > 
> > > settings -> advanced -> performance
> > > 
> > > under "caches"
> > > 
> > > "cache flush interval" - default is 512 ticks. top slider.
> > 
> > Thanks Carsten, this the setting I altered, reduced it to 64 ticks,but
> > the problem remains.  PDF files, or image files (png) just get stuck
> > listed multiple times in lsof and are not released.  txt files have no
> > such problem.
> 
> that's still 8 seconds. drop it to 8.
> 
> > A minute or more after I close EFM I get the usual pop up advising me
> > that the USB could not be unmounted
> > (org.enlightenment.fm2.UnmounTimeout).
> > 
> > I'm running efl/elementary 1.15.1 and enlightenment 0.19.10 at present,
> > but this problem is there for some time now.
> 
> ummm errr... it should work. i noticed when i nuked it to 8 the open fd
> went away fast.

Yes, it should, or at least it was in the past, but it doesn't right now.  I 
dropped it down to 8 ticks.  PDFs or image files still won't let go.  A minute 
or so later the org.enlightenment.fm2.UnmounTimeout error pops up.  The 
.enlightenment-errors file shows this:

E FM OPERATION CHANGED:
---
E FM OPERATION FINISHED:
---
E FM OPERATION CHANGED:
---
E FM OPERATION FINISHED:
---
CRI<3592>: lib/eldbus/eldbus_pending.c:257 eldbus_pending_cancel() *** Eina 
Magic Check Failed at 0xd36af0 !!!
Input handle is wrong type
Expected: db050004 - Eldbus_Pending
Supplied: 00d49070 - (unknown)
*** NAUGHTY PROGRAMMER!!!
*** SPANK SPANK SPANK!!!
*** Now go fix your code. Tut tut tut!


CRI<3592>: lib/eldbus/eldbus_pending.c:257 eldbus_pending_cancel() *** Eina 
Magic Check Failed at 0xd4b800 !!!
Input handle is wrong type
Expected: db050004 - Eldbus_Pending
Supplied: 00d07450 - (unknown)
*** NAUGHTY PROGRAMMER!!!
*** SPANK SPANK SPANK!!!
*** Now go fix your code. Tut tut tut!

The first error was caused when I closed EFM.  The second when I right clicked 
to unmount it.

-- 
Regards,
Mick
--
___
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

2015-09-20 Thread The Rasterman
On Sun, 20 Sep 2015 14:15:21 +0200 (CEST) Peter Koellner 
said:

> Hi!
> 
> So I am in the menu at Preferencias (using spanish locale) - Preferencias
> (the one with the two crossed wrenches icon, not the other one with one
> wrench icon) -> Configure Elementary -> More -> Caches. Is that the right
> place? I didn't see anything under 'Avanzado', which would probably be the
> translation for 'advanced'.
> 
> There I see under Cache Flush Interval:
> 
> [x] Enable Flushing   - 512 ticks
> Font Cache Size - 0.5MB
> Image Cache Size - 4 MB
> Number of Edje Files to Cache - 32 files
> Number of Edge Collections to Cache - 64 collections

not elementary.

settings -> advanced -> performance

under "caches"

"cache flush interval" - default is 512 ticks. top slider.

> This is the configuration you mean? In that case flushing should have
> happened after 64 seconds, a bit over a minute, which would be quite
> reasonable. I was trying to unmount the drive for much longer, at least for
> 10 to 20 minutes after closing the files window. So - can it be that in some
> combination of circumstances for some reason the file reference count does
> not get back to zero, or something like that?
> 
> regards
>Peter
> 
> 
> On Sun, 20 Sep 2015, Carsten Haitzler wrote:
> 
> > On Sat, 19 Sep 2015 17:02:27 +0200 (CEST) Peter Koellner 
> > said:
> >
> > 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
> >>
> >
> >
> >
> 
> -- 
> peter kollner 

Re: [e-users] umount external sub does not work because enlightenment process keeps file open

2015-09-20 Thread Peter Koellner
Hi!

So I am in the menu at Preferencias (using spanish locale) - Preferencias 
(the one with the two crossed 
wrenches icon, not the other one with one wrench icon) -> Configure Elementary 
-> More -> Caches. Is that the right place? I didn't see anything under 
'Avanzado', which would probably be the translation for 'advanced'.

There I see under Cache Flush Interval:

[x] Enable Flushing   - 512 ticks
Font Cache Size - 0.5MB
Image Cache Size - 4 MB
Number of Edje Files to Cache - 32 files
Number of Edge Collections to Cache - 64 collections

This is the configuration you mean? In that case flushing should have happened 
after 64 seconds, a bit over a minute, which would be quite reasonable. I was 
trying to unmount the drive for much longer, at least for 10 to 20 minutes 
after closing the files window. So - can it be that in some combination of 
circumstances for some reason the file reference count does not get back to 
zero, or something like that?

regards
   Peter


On Sun, 20 Sep 2015, Carsten Haitzler wrote:

> On Sat, 19 Sep 2015 17:02:27 +0200 (CEST) Peter Koellner 
> said:
>
> 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
>>
>
>
>

-- 
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

2015-09-20 Thread Mick
On Sunday 20 Sep 2015 23:43:18 Carsten Haitzler wrote:
> On Sun, 20 Sep 2015 14:15:21 +0200 (CEST) Peter Koellner
> 
> 
> said:
> > Hi!
> > 
> > So I am in the menu at Preferencias (using spanish locale) -
> > Preferencias (the one with the two crossed wrenches icon, not the other
> > one with one wrench icon) -> Configure Elementary -> More -> Caches. Is
> > that the right place? I didn't see anything under 'Avanzado', which
> > would probably be the translation for 'advanced'.
> > 
> > There I see under Cache Flush Interval:
> > 
> > [x] Enable Flushing   - 512 ticks
> > Font Cache Size - 0.5MB
> > Image Cache Size - 4 MB
> > Number of Edje Files to Cache - 32 files
> > Number of Edge Collections to Cache - 64 collections
> 
> not elementary.
> 
> settings -> advanced -> performance
> 
> under "caches"
> 
> "cache flush interval" - default is 512 ticks. top slider.

Thanks Carsten, this the setting I altered, reduced it to 64 ticks,but the 
problem remains.  PDF files, or image files (png) just get stuck listed 
multiple times in lsof and are not released.  txt files have no such problem.

A minute or more after I close EFM I get the usual pop up advising me that the 
USB could not be unmounted (org.enlightenment.fm2.UnmounTimeout).

I'm running efl/elementary 1.15.1 and enlightenment 0.19.10 at present, but 
this problem is there for some time now.

-- 
Regards,
Mick
--
___
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

2015-09-19 Thread The Rasterman
On Sat, 19 Sep 2015 17:02:27 +0200 (CEST) Peter Koellner 
said:

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


Re: [e-users] umount external sub does not work because enlightenment process keeps file open

2015-09-19 Thread Mick
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