> On the Linux server nfstat -c shows --
> readdir 420888 27%
> readdirplus 1420 0%
The Linux system is the NFS client, so the HP-UX system not logging any READDIR or READDIRPLUS calls in the nfsstat -c output makes sense. The -c option only prints the client-side stats, so if the HP-UX box is the NFS server I wouldn't expect to see any stats.
Is the Linux client using UDP or TCP for the filesystem? The fact that the ls command "times out" would indicate that you're using "soft" mounts. Is this true?
My recommendations in this case would be:
1) Use TCP for the filesystem, not UDP
2) Use "hard" mounts, not soft
3) Disable READDIRPLUS on the HP-UX server
To do #3 you can use the following two adb commands:
# echo 'do_readdirplus/W 0' | adb -k -w /stand/vmunix /dev/mem
# echo 'do_readdirplus?W 0' | adb -k -w /stand/vmunix /dev/mem
The difference between these two commands is the "/" or "?" before the "W 0" option. One of the commands changes the running kernel in memory and the other changes the kernel on disk so the change will survive a reboot. If the kernel gets rebuilt for some reason (installing a kernel patch?) then you'll have to repeat this adb command as the do_readdirplus tunable will revert back to the default value of 1.
In order to verify that do_readdirplus is correctly turned off, you can use these two adb commands:
# echo 'do_readdirplus/D' | adb -k /stand/vmunix /dev/mem
# echo 'do_readdirplus?D' | adb -k /stand/vmunix /dev/mem
They should both show do_readdirplus set to 0.
Again, using TCP, hard, and disabling READDIRPLUS are the first 3 things I'd try. If those don't work we can look at other options.
Regards,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with
HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]