All of lore.kernel.org
 help / color / mirror / Atom feed
* [Lustre-devel] OSD iterator interface
@ 2009-04-02 18:47 Oleg Drokin
  2009-04-02 20:08 ` di wang
  0 siblings, 1 reply; 4+ messages in thread
From: Oleg Drokin @ 2009-04-02 18:47 UTC (permalink / raw)
  To: lustre-devel

Hello!

    While inspecting patches in bug 17560 it struck me as odd that we  
are fetching the data one entry at a time from the filesystem, so I  
asked a many-entries at a time
    approach to be implemented. Now the patch in the bug just fills  
the osd buffer with entries (after parsing them) and then actual user  
(e.g. __mdd_readpage)
    reparses the osd buffer and copies data to its own. This is a lot  
of wasted processing, copies and then some extra memory usage.
    So in my opinion the iterator interface should be reworked to  
accept an iterator and a buffer and then __mdd_readdir will pass in  
its own
    parsing of the data (with possible generalized preparsing from osd  
so that we are fs-neutral) and will directly fill its own buffer to  
the amount it actually needs,
    kind of like any kernel filldir functions already work right now.

    Am I missing something stupid? Are there any objections, would  
this break anything?

Bye,
     Oleg

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

end of thread, other threads:[~2009-04-06  7:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-02 18:47 [Lustre-devel] OSD iterator interface Oleg Drokin
2009-04-02 20:08 ` di wang
2009-04-06  7:21   ` Alex Zhuravlev
2009-04-06  7:43     ` Nikita Danilov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.