Pierre Wieser | 1 Dec 2010 15:30

Nautilus hangs on long operations

Hi

In my daily work, the file manager, i.e. Nautilus, is one of my
main tools. As I deal with lot of big files (100 to 500 MB), I
have to notice that the behavior of Nautilus when copying/moving
these files is rather boring.

Moving one file is yet bearable: the UI keeps just a bit less
responsive.

If I try to move a second file, or just try to do some not-immediate
operation on the file manager, then it hangs for some 5 to 20 or 30
seconds, i.e. all Nautilus windows become greyed and I have just to
wait until something I do not know about, maybe correlated with the
long operations initiated before, but maybe not...

While I perfectly understand that a long operation is.. well, a long
operation, I do not understand why this should affect _all_ Nautilus
windows which are opened on other places!

As I understand the Nautilus code, it makes its best efforts to only
use async operations. But AFAIK, GLib async functions just try to
take advantage of in-process idle time. This is not multithreading.

All this preliminary to have two questions:

- Are these hangs seen by other users ? Or am I the only one to notice
this ??

- If my async vs. multithread analysis is right, should not Nautilus
(Continue reading)

Rui Tiago Cação Matos | 1 Dec 2010 16:00
Picon

Re: Nautilus hangs on long operations

On 1 December 2010 14:30, Pierre Wieser <pwieser <at> trychlos.org> wrote:
> - Are these hangs seen by other users ? Or am I the only one to notice
> this ??

Not recently, no. What is the nautilus version you're using?

> - If my async vs. multithread analysis is right, should not Nautilus
> make more usage of OS multithreading capabilities ? In the ideal,
> should not every tab run in its own thread ?

Since the switch to GIO/gvfs (version 2.22.0 IIRC), I/O operations are
mostly done threaded for local files and out-of-process for gvfs
remote mounts.

Rui
--

-- 
nautilus-list mailing list
nautilus-list <at> gnome.org
http://mail.gnome.org/mailman/listinfo/nautilus-list

Pierre Wieser | 1 Dec 2010 17:02

Re: Nautilus hangs on long operations


----- Mail original -----
> On 1 December 2010 14:30, Pierre Wieser <pwieser <at> trychlos.org> wrote:
> > - Are these hangs seen by other users ? Or am I the only one to
> > notice
> > this ??
> 
> Not recently, no. What is the nautilus version you're using?

I use Fedora 13 64bits, so Nautilus 2.30.1.

> > - If my async vs. multithread analysis is right, should not Nautilus
> > make more usage of OS multithreading capabilities ? In the ideal,
> > should not every tab run in its own thread ?
> 
> Since the switch to GIO/gvfs (version 2.22.0 IIRC), I/O operations are
> mostly done threaded for local files and out-of-process for gvfs
> remote mounts.
> 
> Rui

More precisions about my environment:
My workstation runs an AMD Phenom II X6 1090T with 16GB RAM.
Mostly all my work is made on a NFS server (same configuration)
via a gigabit LAN.
As I have invested some money in these two machines, I am a bit
disappointed to always notice this problem.

Some hints on how to better diagnose what it happens ?
--

-- 
(Continue reading)

Rui Tiago Cação Matos | 1 Dec 2010 17:11
Picon

Re: Nautilus hangs on long operations

2010/12/1 Pierre Wieser <pwieser <at> trychlos.org>:
> Mostly all my work is made on a NFS server (same configuration)
> via a gigabit LAN.

Word on the street is that NFS is crap. I put my money on that being
your problem right there, no matter how fast your LAN is. That being
said, I never used NFS and I don't know how specially, if at all, such
mounts are treated by GIO/gvfs/nautilus.

Good luck,
Rui
--

-- 
nautilus-list mailing list
nautilus-list <at> gnome.org
http://mail.gnome.org/mailman/listinfo/nautilus-list

Rui Tiago Cação Matos | 1 Dec 2010 17:37
Picon

Re: Nautilus hangs on long operations

2010/12/1 Rui Tiago Cação Matos <tiagomatos <at> gmail.com>:
> 2010/12/1 Pierre Wieser <pwieser <at> trychlos.org>:
>> Mostly all my work is made on a NFS server (same configuration)
>> via a gigabit LAN.
>
> Word on the street is that NFS is crap. I put my money on that being
> your problem right there, no matter how fast your LAN is. That being
> said, I never used NFS and I don't know how specially, if at all, such
> mounts are treated by GIO/gvfs/nautilus.

Hmm, I might be sounding like a troll here. I'm sorry.

But hey, there is even an OLS paper about it:

http://www.google.com/search?q=nfs+sucks+-%22need+for+speed%22

Of course you might argue that it's GIO/gvfs/nautilus' fault for
becoming hung themselves which I can certainly agree with and that
would be a bug but you'd need to provide mode information about it,
like actual steps to reproduce it.

Rui
--

-- 
nautilus-list mailing list
nautilus-list <at> gnome.org
http://mail.gnome.org/mailman/listinfo/nautilus-list
Tomas Bzatek | 1 Dec 2010 17:40
Picon
Favicon

Re: Nautilus hangs on long operations

On Wed, 2010-12-01 at 16:11 +0000, Rui Tiago Cação Matos wrote:
> 2010/12/1 Pierre Wieser <pwieser <at> trychlos.org>:
> > Mostly all my work is made on a NFS server (same configuration)
> > via a gigabit LAN.
> 
> Word on the street is that NFS is crap. I put my money on that being
> your problem right there, no matter how fast your LAN is. That being
> said, I never used NFS and I don't know how specially, if at all, such
> mounts are treated by GIO/gvfs/nautilus.

There are no special quirks for NFS except of file monitoring, which is
done by polling. From my experience large traffic on NFS causes lags,
sometimes 4-5 seconds. So even a simple statfs() call used for updating
free space on a volume might cause the process to stuck. Not sure if all
these trivial operations are async.

NFS mounts can be heavily tuned, see the manpages. Also, not sure how
kernel handles I/O workload queuing, if ever.

I wonder if you can reproduce this on local filesystems. Large I/O load
on local disks can cause slowdowns of whole desktop, not just Nautilus
specifically.

-- 
Tomas Bzatek <tbzatek <at> redhat.com>

--

-- 
nautilus-list mailing list
nautilus-list <at> gnome.org
http://mail.gnome.org/mailman/listinfo/nautilus-list
(Continue reading)

Pierre Wieser | 1 Dec 2010 18:01

Re: Nautilus hangs on long operations


----- Mail original -----
> 2010/12/1 Rui Tiago Cação Matos <tiagomatos <at> gmail.com>:
> > 2010/12/1 Pierre Wieser <pwieser <at> trychlos.org>:
> >> Mostly all my work is made on a NFS server (same configuration)
> >> via a gigabit LAN.
> >
> > Word on the street is that NFS is crap. I put my money on that being
> > your problem right there, no matter how fast your LAN is. That being
> > said, I never used NFS and I don't know how specially, if at all,
> > such
> > mounts are treated by GIO/gvfs/nautilus.
> 
> Hmm, I might be sounding like a troll here. I'm sorry.

No problem, here, Rui. ;)

> But hey, there is even an OLS paper about it:
> http://www.google.com/search?q=nfs+sucks+-%22need+for+speed%22

Seems interesting. Have to take a glance at that.

> Of course you might argue that it's GIO/gvfs/nautilus' fault for
> becoming hung themselves which I can certainly agree with and that
> would be a bug but you'd need to provide mode information about it,
> like actual steps to reproduce it.
> 
> Rui

NFS has a very bad reputation indeed, and it do may be my actual problem.
(Continue reading)

Jason Smith | 2 Dec 2010 17:20
Favicon
Gravatar

Extension to export URI information

Hey all,

Is it possible to write an extension the simply exports over dbus the
URI each nautilus tab is currently looking at? Nothing in the current
extension documentation struck me as the right place to try to do this.

-- 
Jason Smith | Desktop Experience Team
GNOME Developer
Canonical USA Inc.
T. +1.248.756.6266 | jason.smith <at> canonical.com
Ubuntu - Linux for human beings | www.ubuntu.com

--

-- 
nautilus-list mailing list
nautilus-list <at> gnome.org
http://mail.gnome.org/mailman/listinfo/nautilus-list

Tomas Bzatek | 2 Dec 2010 17:31
Picon
Favicon

Re: Extension to export URI information

NautilusFileInfo has accessors to get URI which you can hook up for
NautilusMenuProvider which is usually called for every folder
(nautilus_menu_provider_get_background_items). You can't get window/tab
reference though.

Feel free to place a question at #nautilus.
-- 
Tomas Bzatek <tbzatek <at> redhat.com>

On Thu, 2010-12-02 at 11:20 -0500, Jason Smith wrote:
> Hey all,
> 
> Is it possible to write an extension the simply exports over dbus the
> URI each nautilus tab is currently looking at? Nothing in the current
> extension documentation struck me as the right place to try to do this.
> 
> -- 
> Jason Smith | Desktop Experience Team
> GNOME Developer
> Canonical USA Inc.
> T. +1.248.756.6266 | jason.smith <at> canonical.com
> Ubuntu - Linux for human beings | www.ubuntu.com
> 

--

-- 
nautilus-list mailing list
nautilus-list <at> gnome.org
http://mail.gnome.org/mailman/listinfo/nautilus-list

(Continue reading)

nautilusscripts | 2 Dec 2010 20:31

jpg2pdf and merge into a one pdf file

Howdy :-)

I try to create a script to convert jpg files to pdf:

#!/bin/sh
convert "$1" "${1/.jpg/.pdf}"

end use it by nautilus script manager, next create one pdf file with all
jpg files.

How can I do this script?

thanks :)

Pol

--

-- 
nautilus-list mailing list
nautilus-list <at> gnome.org
http://mail.gnome.org/mailman/listinfo/nautilus-list


Gmane