I wrote > Instead of compiling opensolaris for 4-6 hours, I've now used > the following find / grep test using on-2007-05-30 sources: > > 1st test using Nevada build 60: > > % cd /files/onnv-2007-05-30 > % repeat 10 /bin/time find usr/src/ -name "*.[hc]" -exec grep FooBar {} +
This find + grep command basically - does a recursive scan looking for *.h and *.c files - at the end of the recursive directory scan invokes one grep command with ~ 20000 filename args. Simplifying the test a bit more: snv_60 is able to cache all meta-data for a compiled onnv source tree, on a 32-bit x86 machine with 768 mb of physical memory: % cd /files/wos_b67 % repeat 10 sh -c "/bin/time find usr/src/ -name '*.[hc]' -print|wc" real 2:11.7 user 0.2 sys 3.2 19355 19355 772864 real 2.4 user 0.1 sys 1.4 19355 19355 772864 real 2.2 user 0.1 sys 1.5 19355 19355 772864 real 2.0 user 0.1 sys 1.4 19355 19355 772864 real 1:21.8 <<<<<< seems that some meta data was freed here... user 0.2 sys 1.7 19355 19355 772864 real 1:21.0 user 0.2 sys 1.7 19355 19355 772864 real 45.9 user 0.1 sys 1.6 19355 19355 772864 real 3.2 user 0.1 sys 1.3 19355 19355 772864 real 1.9 user 0.1 sys 1.3 19355 19355 772864 real 2.8 user 0.1 sys 1.3 19355 19355 772864 (and the next 10 finds all completed in ~2 seconds per find) build 67 is unable to cache the meta-data, for the same find command on the same zfs: % cd /files/wos_b67 % repeat 10 sh -c "/bin/time find usr/src/ -name '*.[hc]' -print|wc" real 3:20.7 user 0.5 sys 7.5 19355 19355 772864 real 3:07.0 user 0.5 sys 5.5 19355 19355 772864 real 2:44.6 user 0.5 sys 4.7 19355 19355 772864 real 2:06.1 user 0.4 sys 3.9 19355 19355 772864 real 1:16.1 user 0.4 sys 3.5 19355 19355 772864 real 33.0 user 0.4 sys 2.7 19355 19355 772864 real 40.8 user 0.4 sys 3.0 19355 19355 772864 real 18.8 user 0.3 sys 2.6 19355 19355 772864 real 2:32.2 user 0.4 sys 4.2 19355 19355 772864 real 2:05.4 user 0.4 sys 3.9 19355 19355 772864 This message posted from opensolaris.org _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss