From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9ba4,f2a3b77411cfb76f,start X-Google-Attributes: gidf9ba4,public X-Google-Thread: f678f,f2a3b77411cfb76f,start X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1995-02-22 08:50:28 PST Path: nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!news.sprintlink.net!EU.net!uknet!daphne.ecmwf.co.uk!ecmwf.int!syw From: mitch.sukalski@ecmwf.int (Mitch Sukalski) Newsgroups: comp.soft-sys.dce,comp.unix.osf.misc Subject: DFS write performance....broken (?!?) Followup-To: comp.soft-sys.dce Date: 22 Feb 1995 16:50:28 GMT Organization: European Centre for Medium Range Weather Forecasts (ECMWF) Sender: syw@belleus (Mitch Sukalski) Distribution: world Message-ID: <3ifq0k$n02@daphne.ecmwf.co.uk> NNTP-Posting-Host: belleus.ecmwf.int Keywords: DCE, DFS Xref: nntp.gmd.de comp.soft-sys.dce:381 comp.unix.osf.misc:2403 Has anyone seen anything like the following? I'd appreciate any references or rumours that might help make sense of it. Algorithms and internals of the DFS cache manager would be greatly appreciated... I've been doing some performance analysis comparing DFS, NFS version 2, and local disk access, to each other and with respect to other variables such as buffer size (to write() and read() calls), file size, cache occupancy and overflow. I have two RS/6000s (running AIX v. 3.2.5 enhancement 4, and AIX DCE v. 1.3): one acting as the DFS/NFS client, and the other as its server (and the server of all underlying DCE services). A simple-minded, single-threaded process on the client executes a sequential task list that can be repeated an arbitrary number of times; each task is profiled and logged. DFS read behaviour is predictable and consistent; it is very close to local disk access when the file is in the cache, and close to NFS performance when it is not. DFS write behaviour is much more complicated, and erratic (cm write-behind interference?). Case #1: In particular, one test showed DFS write times from 25-72 seconds (real time not cpu time), while NFS showed write times of 20-25 seconds! Buffer size was 4KB, and file size was 9996KB (= DFS cache size minus 4KB of overhead). The task list was executed 40 times in succession. 2 files are written and read via NFS and DFS, deliberately causing DFS cache overflow. I would have expected write times either close to NFS or better (from partial write caching on local disk - local disk writes times are much quicker), not up to 5 times worse? Here's a sample task list: # more cache exhaustion, will use NFS and DFS/JFS for comparison sake... set jfs=/:/jfs set nfs=/nfstest set fs=9996k set bs=4k system cm flush $jfs sleep 10 write $jfs/1 $bs 0 $fs sleep 30 write $nfs/1 $bs 0 $fs sleep 30 read $jfs/1 $bs 0 $fs read $nfs/1 $bs 0 $fs write $jfs/2 $bs 0 $fs sleep 30 write $nfs/2 $bs 0 $fs sleep 30 read $jfs/2 $bs 0 $fs read $nfs/2 $bs 0 $fs sleep 10 read $jfs/1 $bs 0 $fs read $nfs/1 $bs 0 $fs read $jfs/2 $bs 0 $fs read $nfs/2 $bs 0 $fs remove $jfs/1 remove $jfs/2 remove $nfs/1 remove $nfs/2 repeat 39 end Case #2: In another set of write tests (2MB files) varying buffer size from 1KB to 128KB, the best consistent performance was with 1KB buffers to the write() call (DFS cache chunk size is 64KB)! Performance oscillates wildly as buffer size increases, and degrades up to a factor of 5 (3-25 seconds compared to 3-7 seconds for 1KB buffers)! This happens whether or not the cache manager is explicitly flushed or not (file opened with creat()) at the start of each iteration. NFS performance is highly predictable in these same circumstances with writes from 11-19 seconds for buffers of 1 or 2 KB, and times from 4-8 seconds for buffers of {4,8,16,32,64,128}KB. AIX's mbuf cluster and pagesize is 4KB, and the NFS write/read buffer size defaulted to 8KB. Here's one task list: # DFS/JFS writes only - 2MB files @ a variety of block sizes # no cache exhaustion... set jfs=/:/jfs set fs=2m set bs1=1k set bs2=2k set bs3=4k set bs4=8k set bs5=16k set bs6=32k set bs7=64k set bs8=128k write $jfs/1 $bs1 0 $fs write $jfs/2 $bs2 0 $fs write $jfs/3 $bs3 0 $fs write $jfs/4 $bs4 0 $fs write $jfs/5 $bs5 0 $fs write $jfs/6 $bs6 0 $fs write $jfs/7 $bs7 0 $fs write $jfs/8 $bs8 0 $fs repeat 39 end Cheers, Mitch P.S. I'd be glad to share my data, if it would help. -- Operations department, DHS project European Centre for Medium Range Weather Forecasts (ECMWF) Shinfield Park, Reading, Berkshire, RG2 9AX, UK tel: +44 (0)1734 499000 ext. 2383 direct: +44 (0)1734 499383 fax: +44 (0)1734 869450 email: mitch.sukalski@ecmwf.int