From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,29fcd67840fa9b80 X-Google-Attributes: gidfee84,public X-Google-Thread: f57db,6870c823bf12550c,start X-Google-Attributes: gidf57db,public X-Google-ArrivalTime: 1994-06-02 12:40:49 PST Path: bga.com!news.sprintlink.net!rtp.vnet.net!ankh.iia.org!babbage.ece.uc.edu!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!agate!dog.ee.lbl.gov!overload.lbl.gov!intruder.lbl.gov!clarsen From: clarsen@intruder.lbl.gov (Case Larsen) Newsgroups: comp.unix.osf.osf1,comp.benchmarks Subject: Re: Fast File System? Followup-To: comp.benchmarks Date: 1 Jun 1994 17:05:32 GMT Organization: Lawrence Berkeley Laboratory Message-ID: <2sif4s$l2d@overload.lbl.gov> References: <2rgif1$7du@ulowell.uml.edu> <2rhphmINNhqe@usenet.pa.dec.com> NNTP-Posting-Host: intruder.lbl.gov Xref: bga.com comp.unix.osf.osf1:1851 comp.benchmarks:1184 In article <2rhphmINNhqe@usenet.pa.dec.com>, Burkhard Neidecker-Lutz wrote: >>My question: Does AdvFS perform faster than UFS for local traffic? NFS? >> > >AdvFS is much faster for metadata operations (creation and deletion of >files). AdvFS can be slightly slower for some normal operations, but >mostly it's a wash. AdvFS can be much faster for large files when >it's builtin striping facilities are used. Could you run this on AdvFS and tell me what output you get? I'm going to release this and a bunch of figures to comp.benchmarks soon. I'd be interested to see how AdvFS fits in. Do: cc -O creattest.c -o creattest ./creattest 0 8000 ./creattest 1024 8000 ./creattest 2048 8000 ./creattest 4096 8000 ./creattest 8192 8000 ./creattest 16384 8000 ./creattest 65536 8000 ./creattest 131072 8000 creattest.c: #ifndef lint static char vcid[] = "$Id: creattest.c,v 1.1 1994/05/18 09:14:47 clarsen\ Exp clarsen $"; /* * $Log: creattest.c,v $ * Revision 1.1 1994/05/18 09:14:47 clarsen * Initial revision * */ #endif /* lint */ #include #include #include #include #include #include #define N 1000 #define BUFLEN 8192 main(argc,argv) int argc; char *argv[]; { int i; struct timeval start, end; char *buf; int size = atoi(argv[1]); int n_files = atoi(argv[2]); if (size>0) { buf = malloc(BUFLEN); } system ("mkdir creat"); gettimeofday (&start,NULL); for (i = 0; i < n_files; i++) { char a[36]; struct stat stb; int fd, n; sprintf (a,"creat/%d",i); fd = open(a,O_RDWR|O_CREAT,0644); /* Slow on linux. NOOP on other machines */ /* fstat(fd,&stb);*/ if (size > 0) { for (n = size; n >0; n-=BUFLEN) { write(fd, buf,n > BUFLEN? BUFLEN : n); } } close(fd); } gettimeofday(&end,NULL); system ("rm -rf creat"); { double t; t = (end.tv_sec-start.tv_sec)+(end.tv_usec-start.tv_usec)/1000000.0; printf ("%d byte/files:%d files:%f files/second:%f seconds\n", size,n_files,n_files/t,t); } exit(0); } -Case Larsen ctlarsen@lbl.gov