* Reading a bunch of file as fast a possible
@ 2006-10-31 17:22 Olivier Galibert
2006-10-31 18:45 ` Phillip Susi
0 siblings, 1 reply; 2+ messages in thread
From: Olivier Galibert @ 2006-10-31 17:22 UTC (permalink / raw)
To: Hack inc.
After searching for kinda-keywords in a locked-in-memory index, I get
a list of 50-100 files out of several hundred thousands I want to read
as fast as possible. I can ensure that the directory structure in hot
in the dcache by re-reading it from time to time, but there isn't
enough memory to lock the documents there. So I'd like to read 50-100
files for which I have the sizes (I put them in the index) and memory
space as fast as possible (less than 0.1s would be great) from
cold-ish cache.
The best way is I think to find a way to give all the requests to the
system and have it sort them optimally at the elevator level. But how
can I do that? Can aio do it, or something else?
OG.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Reading a bunch of file as fast a possible
2006-10-31 17:22 Reading a bunch of file as fast a possible Olivier Galibert
@ 2006-10-31 18:45 ` Phillip Susi
0 siblings, 0 replies; 2+ messages in thread
From: Phillip Susi @ 2006-10-31 18:45 UTC (permalink / raw)
To: Olivier Galibert, Hack inc.
Yes, it sounds like you are looking for aio, possibly with O_DIRECT if
you would prefer that the reads not churn the cache.
Olivier Galibert wrote:
> After searching for kinda-keywords in a locked-in-memory index, I get
> a list of 50-100 files out of several hundred thousands I want to read
> as fast as possible. I can ensure that the directory structure in hot
> in the dcache by re-reading it from time to time, but there isn't
> enough memory to lock the documents there. So I'd like to read 50-100
> files for which I have the sizes (I put them in the index) and memory
> space as fast as possible (less than 0.1s would be great) from
> cold-ish cache.
>
> The best way is I think to find a way to give all the requests to the
> system and have it sort them optimally at the elevator level. But how
> can I do that? Can aio do it, or something else?
>
> OG.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-10-31 18:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-31 17:22 Reading a bunch of file as fast a possible Olivier Galibert
2006-10-31 18:45 ` Phillip Susi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox