From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Sun, 8 Jun 2014 10:53:36 -0400 To: 9fans@9fans.net Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] duppage Topicbox-Message-UUID: f7b7c22a-ead8-11e9-9d60-3106f5b1d025 i was experimenting a bit with cinap's version of dropping duppage, and for the lame build the kernel tests there's quite a bit more i/o duppage no duppage read 45976291 53366962 rpc 73674 75718 you can see below that both end up reading 6909416 bytes from 6c for 136 executions. 6c is only 264450 text+data, so that's 26 unnecessary reads (6c had already been cached). the original fairs better reading only 1816296, but that's still way too much. this needs a better algorithm. - erik --- without duppage Opens Reads (bytes) Writes (bytes) File 4 43 301801 0 0 /bin/ape/sh 3 12 61137 0 0 /bin/ls 155 476 1642711 0 0 /bin/rc 5 84 602660 0 0 /bin/awk 9 79 514294 0 0 /bin/6a 136 1060 6909416 0 0 /bin/6c 5 50 329397 0 0 /bin/6l 8 20 66901 0 0 /bin/echo 3 11 51238 0 0 /bin/xd 3 13 72700 0 0 /bin/sed 4 13 54357 0 0 /bin/cp 4 33 201057 0 0 /bin/file 4 21 125962 0 0 /bin/strip 4 12 51024 0 0 /bin/aux/data2s 2 9 42686 0 0 /bin/rm with duppage Opens Reads (bytes) Writes (bytes) File 4 31 216169 0 0 /bin/ape/sh 3 10 50833 0 0 /bin/ls 155 190 210423 0 0 /bin/rc 5 57 398636 0 0 /bin/awk 9 57 357441 0 0 /bin/6a 136 370 1816296 0 0 /bin/6c 5 29 178269 0 0 /bin/6l 8 13 35485 0 0 /bin/echo 3 11 59756 0 0 /bin/sed 3 9 40742 0 0 /bin/xd 4 10 39909 0 0 /bin/cp 4 18 100617 0 0 /bin/file 4 12 60634 0 0 /bin/strip 4 9 37104 0 0 /bin/aux/data2s 2 8 38150 0 0 /bin/rm