Further trying to sanitize venti, I decided to change my mventi (no isects) for 
mmap IO.

At a first stage I mmap the whole venti i arena partition (current size 80GB, 
filled to 44GB). On a 64bit processor this is not a big thing, and replace the 
file operations (rwpart in part.c  and readarena in arena.c) by memmove. 

As it works on amd64 FreeBSD, I can now eliminate the block cache  and its 
complications (IO over block boundaries) from the source making the remaining 
source much clearer.

The price is, that I have to rely on demand paging of the OS. So it is probably 
not easily portable to plan9 or 9front.

Can any body give ime a hint, how to map a partition to a segment in 9front?

------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Tf991997f4e7bb37e-M6862409e4512b86c28587d83
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to