public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* Errors during a simple mount storm test
@ 2010-02-04 20:15 Shehjar Tikoo
       [not found] ` <4B6B2AE5.1070007-+FkPdpiNhgJBDgjK7y7TUQ@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Shehjar Tikoo @ 2010-02-04 20:15 UTC (permalink / raw)
  To: linux-nfs

Hi All

The shell command below is probably not applicable to
all real world setups but I wanted to check it out nonetheless.
The problem is with the following command that is supposed
run a mount-umount loop:

$ while [ true ]; do echo sending; mount localhost:/test -o 
noacl,nolock,tcp,mountproto=tcp /mnt;umount  /mnt; done

For the first hundred iterations, it works fine but then starts
spewing errors with the mount command failing. For eg.
the output looks like below:

sending
sending
sending
sending
sending
sending
sending
sending
sending
sending
sending
sending
mount.nfs: mount system call failed
umount: /mnt: not mounted
sending
mount.nfs: mount system call failed
umount: /mnt: not mounted
sending
mount.nfs: mount system call failed
umount: /mnt: not mounted
sending
mount.nfs: mount system call failed
umount: /mnt: not mounted

Any ideas why the mount sequence stops abruptly?
There dont seem to be any relevant messages in the
dmesg output either.

The client and server are on the same machine:
Linux indus 2.6.31-17-generic Ubuntu SMP x86_64 GNU/Linux

I have verified through wireshark that the server is not
receiving any mount requests once the mount command start
failing. Instead there are only successful GETPORT requests
for the MOUNTv3 program.

Thanks
-Shehjar




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Errors during a simple mount storm test
       [not found] ` <4B6B2AE5.1070007-+FkPdpiNhgJBDgjK7y7TUQ@public.gmane.org>
@ 2010-02-04 20:32   ` Trond Myklebust
  2010-02-04 20:42     ` Shehjar Tikoo
  0 siblings, 1 reply; 3+ messages in thread
From: Trond Myklebust @ 2010-02-04 20:32 UTC (permalink / raw)
  To: Shehjar Tikoo; +Cc: linux-nfs

On Fri, 2010-02-05 at 01:45 +0530, Shehjar Tikoo wrote: 
> Hi All
> 
> The shell command below is probably not applicable to
> all real world setups but I wanted to check it out nonetheless.
> The problem is with the following command that is supposed
> run a mount-umount loop:
> 
> $ while [ true ]; do echo sending; mount localhost:/test -o 
> noacl,nolock,tcp,mountproto=tcp /mnt;umount  /mnt; done
> 
> For the first hundred iterations, it works fine but then starts
> spewing errors with the mount command failing. For eg.
> the output looks like below:
> 
> sending
> sending
> sending
> sending
> sending
> sending
> sending
> sending
> sending
> sending
> sending
> sending
> mount.nfs: mount system call failed
> umount: /mnt: not mounted
> sending
> mount.nfs: mount system call failed
> umount: /mnt: not mounted
> sending
> mount.nfs: mount system call failed
> umount: /mnt: not mounted
> sending
> mount.nfs: mount system call failed
> umount: /mnt: not mounted
> 
> Any ideas why the mount sequence stops abruptly?
> There dont seem to be any relevant messages in the
> dmesg output either.
> 
> The client and server are on the same machine:
> Linux indus 2.6.31-17-generic Ubuntu SMP x86_64 GNU/Linux
> 
> I have verified through wireshark that the server is not
> receiving any mount requests once the mount command start
> failing. Instead there are only successful GETPORT requests
> for the MOUNTv3 program.

"netstat -t" will probably show you that all your free ports in the
range 0-1023 are now in the TIME_WAIT state. This again means that you
have to wait a couple of minutes for the TIME_WAITs to expire before you
can try again.

So basically, it is a case of your test being flawed.

Trond


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Errors during a simple mount storm test
  2010-02-04 20:32   ` Trond Myklebust
@ 2010-02-04 20:42     ` Shehjar Tikoo
  0 siblings, 0 replies; 3+ messages in thread
From: Shehjar Tikoo @ 2010-02-04 20:42 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: linux-nfs

Trond Myklebust wrote:
> On Fri, 2010-02-05 at 01:45 +0530, Shehjar Tikoo wrote: 
>> Hi All
>>
>> The shell command below is probably not applicable to
>> all real world setups but I wanted to check it out nonetheless.
>> The problem is with the following command that is supposed
>> run a mount-umount loop:
>>
>> $ while [ true ]; do echo sending; mount localhost:/test -o 
>> noacl,nolock,tcp,mountproto=tcp /mnt;umount  /mnt; done
>>
>> For the first hundred iterations, it works fine but then starts
>> spewing errors with the mount command failing. For eg.
>> the output looks like below:
>>
>> sending
>> sending
>> sending
>> sending
>> sending
>> sending
>> sending
>> sending
>> sending
>> sending
>> sending
>> sending
>> mount.nfs: mount system call failed
>> umount: /mnt: not mounted
>> sending
>> mount.nfs: mount system call failed
>> umount: /mnt: not mounted
>> sending
>> mount.nfs: mount system call failed
>> umount: /mnt: not mounted
>> sending
>> mount.nfs: mount system call failed
>> umount: /mnt: not mounted
>>
>> Any ideas why the mount sequence stops abruptly?
>> There dont seem to be any relevant messages in the
>> dmesg output either.
>>
>> The client and server are on the same machine:
>> Linux indus 2.6.31-17-generic Ubuntu SMP x86_64 GNU/Linux
>>
>> I have verified through wireshark that the server is not
>> receiving any mount requests once the mount command start
>> failing. Instead there are only successful GETPORT requests
>> for the MOUNTv3 program.
> 
> "netstat -t" will probably show you that all your free ports in the
> range 0-1023 are now in the TIME_WAIT state. This again means that you
> have to wait a couple of minutes for the TIME_WAITs to expire before you
> can try again.
> 
> So basically, it is a case of your test being flawed.

Thanks!
I'll to resort to using noresvport in that case.

-Shehjar

> 
> Trond
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-02-04 20:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-04 20:15 Errors during a simple mount storm test Shehjar Tikoo
     [not found] ` <4B6B2AE5.1070007-+FkPdpiNhgJBDgjK7y7TUQ@public.gmane.org>
2010-02-04 20:32   ` Trond Myklebust
2010-02-04 20:42     ` Shehjar Tikoo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox