From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8b0a083ee91d4832 X-Google-Attributes: gidfee84,public From: Casper.Dik@Holland.Sun.Com (Casper H.S. Dik - Network Security Engineer) Subject: Re: NFS linux->osf1 slow, linux->irix fast Date: 1999/01/21 Message-ID: #1/1 X-Deja-AN: 435174826 References: Mail-Copies-To: never Organization: Sun Microsystems, Netherlands Newsgroups: comp.unix.osf.osf1 [[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]] Remco Wouts writes: >We have a mixed network of machines running linux, osf1, and irix. All >machines serve disks to each other over NFS. There seems to be a huge >performance problem when writing on linux to disks mounted from our >ALPHA'S, whereas writing to the SGI's works as advertised. I did a >dejanews search and a few people mention the same problem but no >solution has been posted. Usually linux get's the blame. Since >everything works fine with IRIX I really think there is something >funny with the NFS2 implementation under OSF1. It's more of a problem with Linux and IRIX. Linux doesn't perform write behind and IRIX violates the NFS protocol spec by lying that it has written something to disk when it hasn't. >Attached is the output of tcpdump for writing to files on disk on two >of our machines, everything is on 100Mb ethernet half duplex. The >problem seems to be that under OSF1 writes are serialized and under >IRIX they are not. The same thing is seen when writing large amount of >blocks. Just curious: what system did you use for tcpdump? The timstamps look bogus. (The end in the same four digits all the time and several packets appear to have been exchanged in one microsecond, which isn't even theoretically possible) >dd if=/dev/zero of= bs=1024 count=5 >09:51:46.693697 rembrandt.1427250625 > carr.nfs: 1180 write [|nfs] >09:51:46.743697 carr.nfs > rembrandt.1427250625: reply ok 96 write [|nfs] As a standards conforming system, carr waits until the write has been committed to disk. >dd if=/dev/zero of= bs=1024 count=5 Since tcpdump is faulty on this system, I can only assume the packets are exchanged within teh same 10ms interval: >09:51:51.293697 bosch.nfs > rembrandt.1427250631: reply ok 96 setattr [|nfs] >09:51:51.293697 rembrandt.1427250632 > bosch.nfs: 1180 write [|nfs] >09:51:51.293697 bosch.nfs > rembrandt.1427250632: reply ok 96 write [|nfs] >09:51:51.293697 rembrandt.1427250633 > bosch.nfs: 1180 write [|nfs] >09:51:51.293697 bosch.nfs > rembrandt.1427250633: reply ok 96 write [|nfs] >09:51:51.293697 rembrandt.1427250634 > bosch.nfs: 1180 write [|nfs] >09:51:51.293697 bosch.nfs > rembrandt.1427250634: reply ok 96 write [|nfs] >09:51:51.293697 rembrandt.1427250635 > bosch.nfs: 1180 write [|nfs] >09:51:51.293697 bosch.nfs > rembrandt.1427250635: reply ok 96 write [|nfs] >09:51:51.293697 rembrandt.1427250636 > bosch.nfs: 1180 write [|nfs] >09:51:51.293697 bosch.nfs > rembrandt.1427250636: reply ok 96 write [|nfs] Here we see "bosch" lying about how fast its disks are. Casper -- Expressed in this posting are my opinions. They are in no way related to opinions held by my employer, Sun Microsystems. Statements on Sun products included here are not gospel and may be fiction rather than truth.