9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Speed of 9pfuse on Linux
@ 2010-02-10  9:27 Pavel Klinkovsky
  2010-02-10  9:54 ` Gorka Guardiola
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Pavel Klinkovsky @ 2010-02-10  9:27 UTC (permalink / raw)
  To: 9fans

Hi all,

I am trying 9pfuse (p9p) on my Linux (Fedora 10), and the access to
remote directories/files is extremly slow.
Do I make something wrong?

Thanks in advance.

Pavel



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] Speed of 9pfuse on Linux
  2010-02-10  9:27 [9fans] Speed of 9pfuse on Linux Pavel Klinkovsky
@ 2010-02-10  9:54 ` Gorka Guardiola
  2010-02-10 12:28   ` Eric Van Hensbergen
  2010-02-10 13:32   ` Pavel Klinkovsky
  2010-02-10 11:57 ` Pavel Klinkovsky
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 19+ messages in thread
From: Gorka Guardiola @ 2010-02-10  9:54 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Maybe yes, maybe no. What is the latency to your file server?.
http://lsub.org/ls/export/opiwp9.pdf
http://lsub.org/ls/export/opiwp9tlk.pdf
--
- curiosity sKilled the cat



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] Speed of 9pfuse on Linux
  2010-02-10  9:27 [9fans] Speed of 9pfuse on Linux Pavel Klinkovsky
  2010-02-10  9:54 ` Gorka Guardiola
@ 2010-02-10 11:57 ` Pavel Klinkovsky
  2010-02-10 13:04   ` Eric Van Hensbergen
  2010-02-10 12:09 ` maht
  2010-02-10 13:32 ` Pavel Klinkovsky
  3 siblings, 1 reply; 19+ messages in thread
From: Pavel Klinkovsky @ 2010-02-10 11:57 UTC (permalink / raw)
  To: 9fans

> Maybe yes, maybe no. What is the latency to your file server?
I tested it with 'sources.cs.bell-labs.com'.

My tests are performed on the same HW.
If I boot into the native Plan9, the access is fast enough.
If I boot into the Fedora 10, the access is extremly slow...

Pavel



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] Speed of 9pfuse on Linux
  2010-02-10  9:27 [9fans] Speed of 9pfuse on Linux Pavel Klinkovsky
  2010-02-10  9:54 ` Gorka Guardiola
  2010-02-10 11:57 ` Pavel Klinkovsky
@ 2010-02-10 12:09 ` maht
  2010-02-10 13:32 ` Pavel Klinkovsky
  3 siblings, 0 replies; 19+ messages in thread
From: maht @ 2010-02-10 12:09 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


> Hi all,
>
> I am trying 9pfuse (p9p) on my Linux (Fedora 10), and the access to
> remote directories/files is extremly slow.
> Do I make something wrong?
>
> Thanks in advance.
>
> Pavel
>
>
Two things you can test with :

1) real plan9 to the same place
2) qemu plan9 on Fedora to the same place

"It's slow, what's wrong" is perhaps a little vague.



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] Speed of 9pfuse on Linux
  2010-02-10  9:54 ` Gorka Guardiola
@ 2010-02-10 12:28   ` Eric Van Hensbergen
  2010-02-10 13:32   ` Pavel Klinkovsky
  1 sibling, 0 replies; 19+ messages in thread
From: Eric Van Hensbergen @ 2010-02-10 12:28 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Also - which file server are you using?

Sent from my iPhone

On Feb 10, 2010, at 3:54 AM, Gorka Guardiola <paurea@gmail.com> wrote:

> Maybe yes, maybe no. What is the latency to your file server?.
> http://lsub.org/ls/export/opiwp9.pdf
> http://lsub.org/ls/export/opiwp9tlk.pdf
> --
> - curiosity sKilled the cat
>



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] Speed of 9pfuse on Linux
  2010-02-10 11:57 ` Pavel Klinkovsky
@ 2010-02-10 13:04   ` Eric Van Hensbergen
  0 siblings, 0 replies; 19+ messages in thread
From: Eric Van Hensbergen @ 2010-02-10 13:04 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

File operation bandwidth should be roughly equivilent once the file is
open - directory reads will have a large penalty under Linux
complicated by the latency of the connection.

      -Eric

Sent from my iPhone

On Feb 10, 2010, at 11:57 AM, Pavel Klinkovsky <pavel.klinkovsky@gmail.com
 > wrote:

>> Maybe yes, maybe no. What is the latency to your file server?
> I tested it with 'sources.cs.bell-labs.com'.
>
> My tests are performed on the same HW.
> If I boot into the native Plan9, the access is fast enough.
> If I boot into the Fedora 10, the access is extremly slow...
>
> Pavel
>



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] Speed of 9pfuse on Linux
  2010-02-10  9:27 [9fans] Speed of 9pfuse on Linux Pavel Klinkovsky
                   ` (2 preceding siblings ...)
  2010-02-10 12:09 ` maht
@ 2010-02-10 13:32 ` Pavel Klinkovsky
  2010-02-10 16:28   ` Eric Van Hensbergen
  3 siblings, 1 reply; 19+ messages in thread
From: Pavel Klinkovsky @ 2010-02-10 13:32 UTC (permalink / raw)
  To: 9fans

> 1) real plan9 to the same place
> 2) qemu plan9 on Fedora to the same place
As I wrote above, I made exactly the same test on exactly the same HW
(and internet connection).
1. Native Plan9.
2. Native Fedora 10 with p9p.

> "It's slow, what's wrong" is perhaps a little vague.
Not precisely measured (I can do it today).
My estimation of the time spent by 'ls' command in contrib directory:
- 9pfuse on Fedora was more than 10 times slower.

Pavel



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] Speed of 9pfuse on Linux
  2010-02-10  9:54 ` Gorka Guardiola
  2010-02-10 12:28   ` Eric Van Hensbergen
@ 2010-02-10 13:32   ` Pavel Klinkovsky
  1 sibling, 0 replies; 19+ messages in thread
From: Pavel Klinkovsky @ 2010-02-10 13:32 UTC (permalink / raw)
  To: 9fans

> Also - which file server are you using?
As I wrote above I tested it with 'sources.cs.bell-labs.com'.

Pavel



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] Speed of 9pfuse on Linux
  2010-02-10 13:32 ` Pavel Klinkovsky
@ 2010-02-10 16:28   ` Eric Van Hensbergen
  2010-02-10 16:44     ` Steve Simon
  0 siblings, 1 reply; 19+ messages in thread
From: Eric Van Hensbergen @ 2010-02-10 16:28 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


On Feb 10, 2010, at 7:32 AM, Pavel Klinkovsky wrote:

>> 1) real plan9 to the same place
>> 2) qemu plan9 on Fedora to the same place
> As I wrote above, I made exactly the same test on exactly the same HW
> (and internet connection).
> 1. Native Plan9.
> 2. Native Fedora 10 with p9p.
> 
>> "It's slow, what's wrong" is perhaps a little vague.
> Not precisely measured (I can do it today).
> My estimation of the time spent by 'ls' command in contrib directory:
> - 9pfuse on Fedora was more than 10 times slower.
> 

That's actually probably pretty good, if you look at slide  10 & 11 on my Linux 9P Trace and Walkthrough (top of http://www.graverobber.org at the moment) you'll see the bad protocol behavior caused by v9fs at the moment -- 9pfuse probably has around the same order increase.  The problem is that Linux doesn't know we got all the attribute information with the dirread, and then goes and individually queries each file in the directory with a stat -- this happens in a serial fashion, so the high latency to sources just makes the problem worse.

A potential solution is to cache metadata, which would speed things up dramatically for static data, but might mess things up for synthetic files.

      -eric




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] Speed of 9pfuse on Linux
  2010-02-10 16:28   ` Eric Van Hensbergen
@ 2010-02-10 16:44     ` Steve Simon
  2010-02-10 18:54       ` Venkatesh Srinivas
  0 siblings, 1 reply; 19+ messages in thread
From: Steve Simon @ 2010-02-10 16:44 UTC (permalink / raw)
  To: 9fans

> The problem is that Linux doesn't know we got all the attribute
> information with the dirread, and then goes and individually queries
> each file in the directory with a stat -- this happens in a serial
> fashion, so the high latency to sources just makes the problem worse.

I have had similar problems in the past and opted to cache dirread
metadata for a second. This is short enough for most things to
continue to work, but long enough for ls(1) to feel responsive.

if you applications use  the old unix trick of using a directory as
an interprocess lock then your mileage may vary...

-Steve



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] Speed of 9pfuse on Linux
  2010-02-10 16:44     ` Steve Simon
@ 2010-02-10 18:54       ` Venkatesh Srinivas
  2010-02-10 19:46         ` Gorka Guardiola
  2010-02-12 10:53         ` Pavel Klinkovsky
  0 siblings, 2 replies; 19+ messages in thread
From: Venkatesh Srinivas @ 2010-02-10 18:54 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Perhaps the time to talk about QTDECENT is at hand?

-- vs



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] Speed of 9pfuse on Linux
  2010-02-10 18:54       ` Venkatesh Srinivas
@ 2010-02-10 19:46         ` Gorka Guardiola
  2010-02-12 10:53         ` Pavel Klinkovsky
  1 sibling, 0 replies; 19+ messages in thread
From: Gorka Guardiola @ 2010-02-10 19:46 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Wed, Feb 10, 2010 at 7:54 PM, Venkatesh Srinivas <me@acm.jhu.edu> wrote:
> Perhaps the time to talk about QTDECENT is at hand?
>

I feel like it is Groundhog Day lately when I read the list.


--
- curiosity sKilled the cat



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] Speed of 9pfuse on Linux
  2010-02-12 10:53         ` Pavel Klinkovsky
@ 2010-02-12  8:20           ` Jacob Todd
  2010-02-12 11:25           ` roger peppe
  2010-02-12 12:15           ` Pavel Klinkovsky
  2 siblings, 0 replies; 19+ messages in thread
From: Jacob Todd @ 2010-02-12  8:20 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 430 bytes --]

On Fri, Feb 12, 2010 at 10:53:49AM +0000, Pavel Klinkovsky wrote:
> Results of my measurements ('ls' in sources repository)
> 
> Native Plan9:
> 1.05 s - very stable results
> 
> Native Linux:
> 40-75 s - very spread results
> 
> My "10x slower" estimation was too optimistic.
> 
> Pavel
> 
That's a really long time for ls. With 2.6.31.6, for me ls takes about 5s.

-- 
I am a man who does not exist for others.

[-- Attachment #2: Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] Speed of 9pfuse on Linux
  2010-02-10 18:54       ` Venkatesh Srinivas
  2010-02-10 19:46         ` Gorka Guardiola
@ 2010-02-12 10:53         ` Pavel Klinkovsky
  2010-02-12  8:20           ` Jacob Todd
                             ` (2 more replies)
  1 sibling, 3 replies; 19+ messages in thread
From: Pavel Klinkovsky @ 2010-02-12 10:53 UTC (permalink / raw)
  To: 9fans

Results of my measurements ('ls' in sources repository)

Native Plan9:
1.05 s - very stable results

Native Linux:
40-75 s - very spread results

My "10x slower" estimation was too optimistic.

Pavel



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] Speed of 9pfuse on Linux
  2010-02-12 10:53         ` Pavel Klinkovsky
  2010-02-12  8:20           ` Jacob Todd
@ 2010-02-12 11:25           ` roger peppe
  2010-02-12 12:15           ` Pavel Klinkovsky
  2 siblings, 0 replies; 19+ messages in thread
From: roger peppe @ 2010-02-12 11:25 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

this is not surprising if you consider what's happening underneath:

native plan 9 to read a directory:
Twalk to directory
Topen directory
Tread directory
Tclunk

linux via fuse:
Twalk to directory
Topen directory
Tread directory
[
Twalk to directory item
Tstat item
Tclunk item
] * n-items in directory
Tclunk directory


On 12 February 2010 10:53, Pavel Klinkovsky <pavel.klinkovsky@gmail.com> wrote:
> Results of my measurements ('ls' in sources repository)
>
> Native Plan9:
> 1.05 s - very stable results
>
> Native Linux:
> 40-75 s - very spread results
>
> My "10x slower" estimation was too optimistic.
>
> Pavel
>
>



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] Speed of 9pfuse on Linux
  2010-02-12 10:53         ` Pavel Klinkovsky
  2010-02-12  8:20           ` Jacob Todd
  2010-02-12 11:25           ` roger peppe
@ 2010-02-12 12:15           ` Pavel Klinkovsky
  2010-02-12 12:45             ` Eric Van Hensbergen
  2 siblings, 1 reply; 19+ messages in thread
From: Pavel Klinkovsky @ 2010-02-12 12:15 UTC (permalink / raw)
  To: 9fans

> this is not surprising if you consider what's happening underneath:
Clear.

Understandable but very unpleasant.

Pavel



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] Speed of 9pfuse on Linux
  2010-02-12 12:15           ` Pavel Klinkovsky
@ 2010-02-12 12:45             ` Eric Van Hensbergen
  2010-02-12 17:51               ` Tim Newsham
  0 siblings, 1 reply; 19+ messages in thread
From: Eric Van Hensbergen @ 2010-02-12 12:45 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

A few "solutions" exist:

Use Op instead - of course there is no Op exporter from sources or
Linux client -- but these could be rectified with work.

If used v9fs run with cache=loose or cache=fscache both of which
enables caching meta-data.

Convince the Linux community to fix ls -  I think the kernel supports
Plan 9 style dirread now (there were some bug reports against v9fs
suggesting a plan 9 style dirread was possible) but tools haven't yet
been updated.

Submit a patch to 9pfuse and/or v9fs providing optional (mount time)
1s cache on metadata.

      -Eric

Sent from my iPhone

On Feb 12, 2010, at 12:15 PM, Pavel Klinkovsky <pavel.klinkovsky@gmail.com
 > wrote:

>> this is not surprising if you consider what's happening underneath:
> Clear.
>
> Understandable but very unpleasant.
>
> Pavel
>



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] Speed of 9pfuse on Linux
  2010-02-12 12:45             ` Eric Van Hensbergen
@ 2010-02-12 17:51               ` Tim Newsham
  2010-02-12 18:07                 ` Abhishek Kulkarni
  0 siblings, 1 reply; 19+ messages in thread
From: Tim Newsham @ 2010-02-12 17:51 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> Convince the Linux community to fix ls -  I think the kernel supports Plan 9
> style dirread now (there were some bug reports against v9fs suggesting a plan
> 9 style dirread was possible) but tools haven't yet been updated.

Any idea how "9 ls" does in p9p?

>    -Eric

Tim Newsham | www.thenewsh.com/~newsham | thenewsh.blogspot.com



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] Speed of 9pfuse on Linux
  2010-02-12 17:51               ` Tim Newsham
@ 2010-02-12 18:07                 ` Abhishek Kulkarni
  0 siblings, 0 replies; 19+ messages in thread
From: Abhishek Kulkarni @ 2010-02-12 18:07 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Fri, Feb 12, 2010 at 12:51 PM, Tim Newsham <newsham@lava.net> wrote:
>> Convince the Linux community to fix ls -  I think the kernel supports Plan
>> 9 style dirread now (there were some bug reports against v9fs suggesting a
>> plan 9 style dirread was possible) but tools haven't yet been updated.
>
> Any idea how "9 ls" does in p9p?
>

9p ls sources
0.315s

9 ls /n/sources
4.012s

ls /n/sources
1.918s

averaged across 8 runs.

>>   -Eric
>
> Tim Newsham | www.thenewsh.com/~newsham | thenewsh.blogspot.com
>
>



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2010-02-12 18:07 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-10  9:27 [9fans] Speed of 9pfuse on Linux Pavel Klinkovsky
2010-02-10  9:54 ` Gorka Guardiola
2010-02-10 12:28   ` Eric Van Hensbergen
2010-02-10 13:32   ` Pavel Klinkovsky
2010-02-10 11:57 ` Pavel Klinkovsky
2010-02-10 13:04   ` Eric Van Hensbergen
2010-02-10 12:09 ` maht
2010-02-10 13:32 ` Pavel Klinkovsky
2010-02-10 16:28   ` Eric Van Hensbergen
2010-02-10 16:44     ` Steve Simon
2010-02-10 18:54       ` Venkatesh Srinivas
2010-02-10 19:46         ` Gorka Guardiola
2010-02-12 10:53         ` Pavel Klinkovsky
2010-02-12  8:20           ` Jacob Todd
2010-02-12 11:25           ` roger peppe
2010-02-12 12:15           ` Pavel Klinkovsky
2010-02-12 12:45             ` Eric Van Hensbergen
2010-02-12 17:51               ` Tim Newsham
2010-02-12 18:07                 ` Abhishek Kulkarni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).