I have committed the changes to make the mmapped venti server fully functional to https://github.com/vestein463/plan9port/tree/master/src/cmd/venti/mappedsrv
This is not fully tested yet, esp. for more than 1 arenapartition. I include data on the read performance vs. the previous traditional-io version. The mmapped version is on amd64/32GB freebsd, the traditional on WD mycloud Ex2 (arm7/1G). The arena partition resides on the mycloud, and is served via nfs readonly to the amd. I repeated the test to see what effect the os caching of the 2 machines may have. 1st is the mmapped version, 2nd the traditional, 3rd mmapped again and 4th traditional. The data is the image of an old ufs filesystem created by vbackup. time venti=wbk1 vcat ffs:f10fb5797e5ea50d6bc567772f9794706548f568 > /dev/null 1540096 blocks total 582848 blocks in use, 2122946 file reads real 6m53,762s user 1m13,788s sys 0m16,910s [wb@wbk1 ~/plan9port/src/cmd/venti/mappedsrv]$ time venti=wdmc vcat ffs:f10fb5797e5ea50d6bc567772f9794706548f568 > /dev/null 1540096 blocks total 582848 blocks in use, 2122946 file reads real 17m28,870s user 1m26,011s sys 0m42,485s [wb@wbk1 ~/plan9port/src/cmd/venti/mappedsrv]$ time venti=wbk1 vcat ffs:f10fb5797e5ea50d6bc567772f9794706548f568 > /dev/null 1540096 blocks total 582848 blocks in use, 2122946 file reads real 3m55,614s user 1m9,911s sys 0m14,804s [wb@wbk1 ~/plan9port/src/cmd/venti/mappedsrv]$ time venti=wdmc vcat ffs:f10fb5797e5ea50d6bc567772f9794706548f568 > /dev/null 1540096 blocks total 582848 blocks in use, 2122946 file reads real 16m41,033s user 1m15,768s sys 0m32,756s ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tf991997f4e7bb37e-M0b9a9d657a4ab010b4c9d5d2 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
