cvs commit: src/sys/sys buf.h

Julian Elischer julian at elischer.org
Fri Nov 5 11:42:15 PST 2004



Alexander Leidinger wrote:

>Zitat von Poul-Henning Kamp <phk at phk.freebsd.dk>:
>
>  
>
>>We've reached a major milestone in the buf-junta work:  struct buf
>>is no longer an I/O request.
>>    
>>
>
>Do you have an outline where this heads to and why?
>

when systems were smaller the number of cached bufs was small, and bufs
represented 'buffers' likely to used soon fo rIO and IO requests were 
simple,
it made sence to combine the IO request and the storage descriptor (buf).

Since then, storage is done via the vm system, IO requests have gotten 
bigger,
and the number of IO requests needed at any time has remained small. it 
makes less
sense to have an IO request with every buf storage descriptor.
It also opens the way for:
changing the io descriptor to suit speical cases without having to worry 
about the buffer cache stuff.
addign more stuff to teh IO request without worrying about bloating teh 
buffer cache stuff.

>
>Bye,
>Alexander.
>
>  
>



More information about the freebsd-current mailing list