9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] What happened on lib9p?
@ 2014-04-20  9:45 kokamoto
  2014-04-20 11:31 ` erik quanstrom
  0 siblings, 1 reply; 12+ messages in thread
From: kokamoto @ 2014-04-20  9:45 UTC (permalink / raw)
  To: 9fans

I'm still seeing 'sources' and 9front sources.
In 9fron sources there are significant changes on lib9p
and those time stamp is younger than 2011.

Something important happened on 9P protocol
while I was peacefully sleeping?

Kenji





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

* Re: [9fans] What happened on lib9p?
  2014-04-20  9:45 [9fans] What happened on lib9p? kokamoto
@ 2014-04-20 11:31 ` erik quanstrom
  2014-04-20 15:27   ` cinap_lenrek
  0 siblings, 1 reply; 12+ messages in thread
From: erik quanstrom @ 2014-04-20 11:31 UTC (permalink / raw)
  To: 9fans

On Sun Apr 20 05:47:44 EDT 2014, kokamoto@hera.eonet.ne.jp wrote:
> I'm still seeing 'sources' and 9front sources.
> In 9fron sources there are significant changes on lib9p
> and those time stamp is younger than 2011.
>
> Something important happened on 9P protocol
> while I was peacefully sleeping?

all i see is rearrangement, and support for shr.

- erik



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

* Re: [9fans] What happened on lib9p?
  2014-04-20 11:31 ` erik quanstrom
@ 2014-04-20 15:27   ` cinap_lenrek
  2014-04-20 15:38     ` erik quanstrom
  2014-04-21  8:19     ` kokamoto
  0 siblings, 2 replies; 12+ messages in thread
From: cinap_lenrek @ 2014-04-20 15:27 UTC (permalink / raw)
  To: 9fans

9front adds a inferno inspired mechanism for handling
requests in parallel to the 9p service loop called
srvrelease()/srvacquire().

often explicitely breaking up your request handling into
separate processes and handing off a request to a process
seems overkill. instead, you can do a srvrelease() which will
(if neccesary) spawn a new process to handle the 9p service
loop while your calling process is now free to block.
once you finished you do a srvacquire() to serialize with
the 9p service loop again.

i used this to make usb drivers multithreaded. usb devs can
be slow to respond or sometimes even hang. as the filesystem is
bound onto /dev, a hanging usb device would hang all walks
on /dev making the system unusable with a single threaded
implementation. srvrelease()/srvacquire() made these changes
trivial todo.

--
cinap



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

* Re: [9fans] What happened on lib9p?
  2014-04-20 15:27   ` cinap_lenrek
@ 2014-04-20 15:38     ` erik quanstrom
  2014-04-21  8:19     ` kokamoto
  1 sibling, 0 replies; 12+ messages in thread
From: erik quanstrom @ 2014-04-20 15:38 UTC (permalink / raw)
  To: 9fans

> i used this to make usb drivers multithreaded. usb devs can
> be slow to respond or sometimes even hang. as the filesystem is
> bound onto /dev, a hanging usb device would hang all walks
> on /dev making the system unusable with a single threaded
> implementation. srvrelease()/srvacquire() made these changes
> trivial todo.

cool!

- erik



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

* Re: [9fans] What happened on lib9p?
  2014-04-20 15:27   ` cinap_lenrek
  2014-04-20 15:38     ` erik quanstrom
@ 2014-04-21  8:19     ` kokamoto
  2014-04-21 13:50       ` cinap_lenrek
  1 sibling, 1 reply; 12+ messages in thread
From: kokamoto @ 2014-04-21  8:19 UTC (permalink / raw)
  To: 9fans

Thanks cinap

> i used this to make usb drivers multithreaded.

Wow!

I found also many eqlock() call instead of qlock().
Is this also related to usb slowness?

Kenji




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

* Re: [9fans] What happened on lib9p?
  2014-04-21  8:19     ` kokamoto
@ 2014-04-21 13:50       ` cinap_lenrek
  2014-04-22  1:46         ` kokamoto
  0 siblings, 1 reply; 12+ messages in thread
From: cinap_lenrek @ 2014-04-21 13:50 UTC (permalink / raw)
  To: 9fans

no, it is not. in the kernel, you can only have
one process doing a sleep on a rendezvous point
at a time.

so when you have multiple waiter processes, you
put a qlock arround the sleep so the first process
goes into the sleep and follow up processes
will get queued on the qlock.

the problem with this construct is that only
the first process thats in the sleep can be
interrupted / killed. the processes queued
in the qlock are uninterruptable / unkillable
as long as they wait for the qlock to be
available.

the eqlock() is a interruptable version of
the qlock() call. that is, it can error out
when the process receives a note.

--
cinap



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

* Re: [9fans] What happened on lib9p?
  2014-04-21 13:50       ` cinap_lenrek
@ 2014-04-22  1:46         ` kokamoto
  2014-04-22 11:37           ` Aram Hăvărneanu
  2014-05-05  5:34           ` kokamoto
  0 siblings, 2 replies; 12+ messages in thread
From: kokamoto @ 2014-04-22  1:46 UTC (permalink / raw)
  To: 9fans

> the eqlock() is a interruptable version of
> the qlock() call. that is, it can error out
> when the process receives a note.

Thans cinap!

I'm checking how I can incorporate your nusb codes
into my 'sources' conservative version usb codes.
Of course, it's should be my personal hiden version.☺

By the way, once upon a time ago, I tried early version
of 9front to bootup from diskless terminal and failed.
It's no problem now?

Kenji




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

* Re: [9fans] What happened on lib9p?
  2014-04-22  1:46         ` kokamoto
@ 2014-04-22 11:37           ` Aram Hăvărneanu
  2014-04-24  1:28             ` kokamoto
  2014-05-05  5:34           ` kokamoto
  1 sibling, 1 reply; 12+ messages in thread
From: Aram Hăvărneanu @ 2014-04-22 11:37 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Tue, Apr 22, 2014 at 3:46 AM,  <kokamoto@hera.eonet.ne.jp> wrote:
> I tried early version
> of 9front to bootup from diskless terminal and failed.
> It's no problem now?

I'm not sure what you mean. I have only one 9front machine with a
disk, all other are diskless and work fine. I don't remember this ever
being a problem.

-- 
Aram Hăvărneanu



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

* Re: [9fans] What happened on lib9p?
  2014-04-22 11:37           ` Aram Hăvărneanu
@ 2014-04-24  1:28             ` kokamoto
  2014-04-24  9:14               ` Aram Hăvărneanu
  0 siblings, 1 reply; 12+ messages in thread
From: kokamoto @ 2014-04-24  1:28 UTC (permalink / raw)
  To: 9fans

> I'm not sure what you mean. I have only one 9front machine with a
> disk, all other are diskless and work fine.

Do you network boot those diskless machine?
When I tried I could use drawterm, but network boot didn't.

Kenji




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

* Re: [9fans] What happened on lib9p?
  2014-04-24  1:28             ` kokamoto
@ 2014-04-24  9:14               ` Aram Hăvărneanu
  0 siblings, 0 replies; 12+ messages in thread
From: Aram Hăvărneanu @ 2014-04-24  9:14 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I PXE-boot most of them, yes.

-- 
Aram Hăvărneanu



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

* Re: [9fans] What happened on lib9p?
  2014-04-22  1:46         ` kokamoto
  2014-04-22 11:37           ` Aram Hăvărneanu
@ 2014-05-05  5:34           ` kokamoto
  2014-05-05  6:06             ` Skip Tavakkolian
  1 sibling, 1 reply; 12+ messages in thread
From: kokamoto @ 2014-05-05  5:34 UTC (permalink / raw)
  To: 9fans

> I'm checking how I can incorporate your nusb codes
> into my 'sources' conservative version usb codes.
> Of course, it's should be my personal hiden version.☺

I found it unneccessary.

The 'sources' usb/disk recognizes partitions already.
However, after I applied 9front's kernel codes (not include eqlock()),
the file copy speed got about 10 times quicker.
Yeah, this is an acceptable speed to use usb disk here.
Thanks every one.

Now, I can proceed myself more...

PS.   I played around with Windows go, and got
much frustrated.☺




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

* Re: [9fans] What happened on lib9p?
  2014-05-05  5:34           ` kokamoto
@ 2014-05-05  6:06             ` Skip Tavakkolian
  0 siblings, 0 replies; 12+ messages in thread
From: Skip Tavakkolian @ 2014-05-05  6:06 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

that means windows is working as expected :)


On Sun, May 4, 2014 at 10:34 PM, <kokamoto@hera.eonet.ne.jp> wrote:

>
> PS.   I played around with Windows go, and got
> much frustrated.☺
>
>
>

[-- Attachment #2: Type: text/html, Size: 549 bytes --]

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

end of thread, other threads:[~2014-05-05  6:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-20  9:45 [9fans] What happened on lib9p? kokamoto
2014-04-20 11:31 ` erik quanstrom
2014-04-20 15:27   ` cinap_lenrek
2014-04-20 15:38     ` erik quanstrom
2014-04-21  8:19     ` kokamoto
2014-04-21 13:50       ` cinap_lenrek
2014-04-22  1:46         ` kokamoto
2014-04-22 11:37           ` Aram Hăvărneanu
2014-04-24  1:28             ` kokamoto
2014-04-24  9:14               ` Aram Hăvărneanu
2014-05-05  5:34           ` kokamoto
2014-05-05  6:06             ` Skip Tavakkolian

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