Messages in this thread | | | Date | Mon, 5 Jan 1998 22:02:57 +0100 (MET) | From | "Krzysztof G. Baranowski" <> | Subject | Re: 2.1.76, nfs client, and memory fragmentation |
| |
While testing the million monkey theory, Miguel de Icaza said: >> You tweaked my curiosity, so I de-inlined copy_to/from_user and did >> some comparisons. Bottom line is that on my machine it doesn't seem >> to care either way.. performance stayed the same. I did Bonnie and >> some network throughput tests in four configs. I'm only posting the >> Bonnie runs in the interest of brevity. >ext2 file system code uses memcpy_fromfs to copy blocks, not >copy_to/from_user. May I ask where ???
[root@manjak fs]# pwd /usr/src/linux-2.1.77/fs [root@manjak fs]# find . -type f -exec grep memcpy_[from,to] {} \; -print # define copy_from_user memcpy_fromfs # define copy_to_user memcpy_tofs ./nfsd/nfsctl.c memcpy_fromfs((char*)inp + (int)inp->cfs_ioctl.data, memcpy_tofs(data->vi.out, ./coda/upcall.c
Cheers, Kris -- Krzysztof G. Baranowski - President of the Harmless Manyacs' Club "The address you are trying to connect to is imaginary. Rotate the network card through 90 degrees and try again." http://www.knm.org.pl/ <prezes@manjak.knm.org.pl>
| |