The point is that we have millions of files, with a total size of many
times the size of memory. Having all of them opened from the beginning
is simply not practical.
/Henrik
Erik Hofman wrote:
>
> Hi,
>
> A quick analysis about what's going on for squid i came up with the
> following:
>
> Store to disk:
>
> open -> write -> close (best in a single thread)
>
> Read from disk (fair more often the writing if all goes well):
>
> open -> read -| (SIGNAL) -> close
> ^-------|
>
> To get this working (using a file descriptor cache) it's important to
> get a file open once (system wide).
> This could only be accomplished by using mmap(), where different
> processors/threads could read at different spots in the same file
> simultaneously.
>
> --
>
> Regards,
> Erik Hofman
Received on Wed Jun 21 2000 - 14:20:25 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:30 MST