* [9fans] Adding lookup() to 9p?
@ 2024-08-29 20:10 Go Phone
2024-09-03 12:55 ` [9fans] " wb.kloke
2024-09-03 13:11 ` [9fans] " ori
0 siblings, 2 replies; 4+ messages in thread
From: Go Phone @ 2024-08-29 20:10 UTC (permalink / raw)
To: 9fans
Hello,
Key-value lookups are expensive over 9p. We need a walk(), open(),
read() and close(). I am wondering if adding a lookup() function to
struct Dev adds much value?
Thanks
Joe
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T2c76f7c236858f21-Mbd852e233dec84338da74016
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 4+ messages in thread
* [9fans] Re: Adding lookup() to 9p?
2024-08-29 20:10 [9fans] Adding lookup() to 9p? Go Phone
@ 2024-09-03 12:55 ` wb.kloke
2024-09-03 13:11 ` [9fans] " ori
1 sibling, 0 replies; 4+ messages in thread
From: wb.kloke @ 2024-09-03 12:55 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 425 bytes --]
Though I see your point, you will need to show a really important improvement to justify any change in 9p protocol.
Best thing you can do: Implement it on your own source, and show the benefits.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T2c76f7c236858f21-M4eb7fa157f31aba40a2c70ea
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 949 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] Adding lookup() to 9p?
2024-08-29 20:10 [9fans] Adding lookup() to 9p? Go Phone
2024-09-03 12:55 ` [9fans] " wb.kloke
@ 2024-09-03 13:11 ` ori
2024-09-03 17:09 ` Steve Simon
1 sibling, 1 reply; 4+ messages in thread
From: ori @ 2024-09-03 13:11 UTC (permalink / raw)
To: 9fans
Quoth Go Phone <gophone2015@gmail.com>:
> Hello,
>
> Key-value lookups are expensive over 9p. We need a walk(), open(),
> read() and close(). I am wondering if adding a lookup() function to
> struct Dev adds much value?
>
> Thanks
> Joe
>
note that you need a separate Twalk message no matter what,
so you can determine if you're crossing a mountpoint. Imagine:
# starting fronm a fresh ns, put a file
# on the real file system there
% mkdir /usr/ori/kv
% touch /usr/ori/kv/value
# then mount in the kv store
% bind /dev/null /usr/ori/kv/store/value
# then do a lookup
% lookup /usr/ori/kv/store/value
Because 'lookup' would be a single message,
you'd return the empty file from the root
file system, and not cross the mountpoint
into the kv store.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T2c76f7c236858f21-M9d6adc7294ccf369050cbf37
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] Adding lookup() to 9p?
2024-09-03 13:11 ` [9fans] " ori
@ 2024-09-03 17:09 ` Steve Simon
0 siblings, 0 replies; 4+ messages in thread
From: Steve Simon @ 2024-09-03 17:09 UTC (permalink / raw)
To: 9fans
can you give some examples of where this new api would be used?
nemo added a readfile and (i think) writefile message in his fork. that was aimed at transferring large sequential files from a fileserver.
there was also many discussions of doing parallel or chained reads to improve 9p performance
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T2c76f7c236858f21-M3a88955ac12ebcf56c34f63d
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-09-03 17:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-29 20:10 [9fans] Adding lookup() to 9p? Go Phone
2024-09-03 12:55 ` [9fans] " wb.kloke
2024-09-03 13:11 ` [9fans] " ori
2024-09-03 17:09 ` Steve Simon
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).