Re: PostgreSQL, NetBSD and NFS - Mailing list pgsql-hackers

From D'Arcy J.M. Cain
Subject Re: PostgreSQL, NetBSD and NFS
Date
Msg-id 200302051501.27557.darcy@druid.net
Whole thread Raw
In response to PostgreSQL, NetBSD and NFS  ("D'Arcy J.M. Cain" <darcy@druid.net>)
Responses Re: PostgreSQL, NetBSD and NFS
Re: PostgreSQL, NetBSD and NFS
List pgsql-hackers
On Wednesday 05 February 2003 13:04, Ian Fry wrote:
> > Wild thought here: can you reduce the MTU on the LAN linking the NFS
> > server to the NetBSD box?  If so, does it help?
>
> How about adjusting the read and write-size used by the NetBSD machine? I
> think the default is 32k for both read and write on i386 machines now.
> Perhaps try setting them back to 8k (it's the -r and -w flags to mount_nfs,
> IIRC)

Hey!  That did it.  I hadn't tried that before because I had tried using the
tcp option to mount and the docs suggested that that would do more than
reducing the block size.  Besides, the man page didn't give the defaults and
I was uncomfortable changing something when I didn't know from what.

So, why does this fix it?  It seems to me that it should have worked anyway.
This feels rather fragile.  I doubt that it is hardware related because I dad
tried it on the other ethernet interface in the machine which was on a
completely different network than the one I am on now.

What is the implication of smaller read and write size?  Will I necessarily
take a performance hit?

--
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.


pgsql-hackers by date:

Previous
From: Oleg Bartunov
Date:
Subject: Alpha version of contrib/tsearch is available for testing
Next
From: Tom Lane
Date:
Subject: Re: PostgreSQL, NetBSD and NFS