/usr/sbin/quota SLOW without quotas

/usr/sbin/quota SLOW without quotas

Post by Guenther Gra » Thu, 13 May 1999 04:00:00



Hi,

I have a couple of solaris 2.6 Ultra-5 machines.
On one machine /usr/sbin/quota takes about
a second, or less. On the others it takes
about a minute to execute.

Using truss /usr/sbin/quota username I found
that it's waiting for input on /dev/udp
(not the sleeping...):

[...]
open("/dev/udp", O_RDWR)                        = 5
ioctl(5, I_FIND, "timod")                       = 0
ioctl(5, I_PUSH, "timod")                       = 0
sigprocmask(SIG_SETMASK, 0xEFFFF5C8, 0xEFFFF5B8) = 0
ioctl(5, I_STR, 0xEFFFF440)                     = 0
sigprocmask(SIG_SETMASK, 0xEFFFF5B8, 0x00000000) = 0
ioctl(5, I_FLUSH, FLUSHRW)                      = 0
sigprocmask(SIG_SETMASK, 0xEFFFF5C8, 0xEFFFF5B8) = 0
ioctl(5, I_STR, 0xEFFFF530)                     = 0
sigprocmask(SIG_SETMASK, 0xEFFFF5B8, 0x00000000) = 0
ioctl(5, I_STR, 0xEFFFF438)                     = 0
getpid()                                        = 25226 [25225]
ioctl(5, I_STR, 0xEFFFF484)                     = 0
time()                                          = 926520672
putmsg(5, 0xEFFFF55C, 0xEFFFF69C, 0)            = 0
poll(0x0002D23C, 1, 15000)      (sleeping...)
poll(0x0002D23C, 1, 15000)                      = 0
poll(0x0002D23C, 1, 8)                          = 0
putmsg(5, 0xEFFFF55C, 0xEFFFF69C, 0)            = 0
poll(0x0002D23C, 1, 30000)      (sleeping...)
poll(0x0002D23C, 1, 30000)                      = 0
putmsg(5, 0xEFFFF55C, 0xEFFFF69C, 0)            = 0
poll(0x0002D23C, 1, 14997)      (sleeping...)
poll(0x0002D23C, 1, 14997)                      = 0
sigprocmask(SIG_SETMASK, 0xEFFFF648, 0xEFFFF638) = 0
close(5)                                        = 0

Note that it tries the same sequence later again
and it succeeds instantly like in the normal case
below.

On the other machine a normal truss /usr/sbin/quota username
looks like this (note that the poll immediately returns):

[...]
open("/dev/udp", O_RDWR)                        = 5
ioctl(5, I_FIND, "timod")                       = 0
ioctl(5, I_PUSH, "timod")                       = 0
sigprocmask(SIG_SETMASK, 0xEFFFF7C0, 0xEFFFF7B0) = 0
ioctl(5, I_STR, 0xEFFFF638)                     = 0
sigprocmask(SIG_SETMASK, 0xEFFFF7B0, 0x00000000) = 0
ioctl(5, I_FLUSH, FLUSHRW)                      = 0
sigprocmask(SIG_SETMASK, 0xEFFFF7C0, 0xEFFFF7B0) = 0
ioctl(5, I_STR, 0xEFFFF728)                     = 0
sigprocmask(SIG_SETMASK, 0xEFFFF7B0, 0x00000000) = 0
ioctl(5, I_STR, 0xEFFFF630)                     = 0
getpid()                                        = 142 [141]
ioctl(5, I_STR, 0xEFFFF67C)                     = 0
time()                                          = 926520707
putmsg(5, 0xEFFFF754, 0xEFFFF894, 0)            = 0
poll(0x0002D23C, 1, 15000)                      = 1
getmsg(5, 0xEFFFF750, 0x00028188, 0xEFFFF77C)   = 0
sigprocmask(SIG_SETMASK, 0xEFFFF840, 0xEFFFF830) = 0
close(5)                                        = 0

Anybody got any explanation for this? Especially
how to fix this?

Thanx in advance

  Guenther

P.S.: Not that we don't have any quotas enabled.
Full truss ouput available on request :-)

 
 
 

/usr/sbin/quota SLOW without quotas

Post by Guenther Gra » Thu, 13 May 1999 04:00:00



> Hi,

> I have a couple of solaris 2.6 Ultra-5 machines.
> On one machine /usr/sbin/quota takes about
> a second, or less. On the others it takes
> about a minute to execute.

Uhh, let me correct this: One one machine it
takes one minute, on all other machines
it takes less than a second. Sorry, for the
confusion,

  Guenther

 
 
 

/usr/sbin/quota SLOW without quotas

Post by Alan Coopersmi » Thu, 13 May 1999 04:00:00



Quote:>I have a couple of solaris 2.6 Ultra-5 machines.
>On one machine /usr/sbin/quota takes about
>a second, or less. On the others it takes
>about a minute to execute.

It will try to check quotas on all filesystems that don't specifically
list "noquota" in their mount flags.  This can take a while if you've
got NFS mounts from slow/down machines.

--
________________________________________________________________________

Univ. of California at Berkeley         http://soar.Berkeley.EDU/~alanc/

 
 
 

/usr/sbin/quota SLOW without quotas

Post by Guenther Gra » Thu, 13 May 1999 04:00:00




> >I have a couple of solaris 2.6 Ultra-5 machines.
> >On one machine /usr/sbin/quota takes about
> >a second, or less. On the others it takes
> >about a minute to execute.

> It will try to check quotas on all filesystems that don't specifically
> list "noquota" in their mount flags.  This can take a while if you've
> got NFS mounts from slow/down machines.

down machines -> That's it. It's got a couple of automounted nfs
mounts of machines which are down right now. Unfortunately
unmounting these doesn't work, because they are busy :-(
I am building lsof right now to see which processes still
use these mount points.

In the future I'll instruct the automounter to set the noquota
flag.

Thanx a lot,

  Guenther

 
 
 

/usr/sbin/quota SLOW without quotas

Post by Neil Ricke » Thu, 13 May 1999 04:00:00



>I have a couple of solaris 2.6 Ultra-5 machines.
>On one machine /usr/sbin/quota takes about
>a second, or less. On the others it takes
>about a minute to execute.

It is waiting for a response from 'rquotad' on the machine from which
a filesystem is mounted.  If there is no 'rquotad' (the 'inetd.conf'
line is commented out), it will wait for a timeout.

Quote:>Note that it tries the same sequence later again
>and it succeeds instantly like in the normal case
>below.

On the second try, 'rquotad' has already been started.  Perhaps the
particular machine is busy or tight on memory, and it takes a while
for 'inetd' to start 'rquotad'.

Quote:>Anybody got any explanation for this? Especially
>how to fix this?

Put 'noquota' into the mount options for any nfs file system that
does not use quotas.
 
 
 

/usr/sbin/quota SLOW without quotas

Post by Casper H.S. Dik - Network Security Engine » Fri, 14 May 1999 04:00:00


[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]


>I have a couple of solaris 2.6 Ultra-5 machines.
>On one machine /usr/sbin/quota takes about
>a second, or less. On the others it takes
>about a minute to execute.
>Using truss /usr/sbin/quota username I found
>that it's waiting for input on /dev/udp
>(not the sleeping...):

It is trying to contact rpc.quotad on a remote NFS filesystem.

Are any of the servers with NFS mounted systens down?

If you don't use quotas on certain NFS filesystems, you
should mount then "noquota".

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.

 
 
 

/usr/sbin/quota SLOW without quotas

Post by Horst Scheuerma » Sat, 15 May 1999 04:00:00



> [[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]

> >I have a couple of solaris 2.6 Ultra-5 machines.
> >On one machine /usr/sbin/quota takes about
> >a second, or less. On the others it takes
> >about a minute to execute.
> >Using truss /usr/sbin/quota username I found
> >that it's waiting for input on /dev/udp
> >(not the sleeping...):
> It is trying to contact rpc.quotad on a remote NFS filesystem.
> Are any of the servers with NFS mounted systens down?
> If you don't use quotas on certain NFS filesystems, you
> should mount then "noquota".

for readers using Solaris < 2.6: before 2.6 quota ignores the
noquota - Option!!

--
Horst Scheuermann        Universitaets-Rechenzentrum Trier      __o  16
Universitaetsring 19     D-54286 Trier                        _`\<,_
Telefon: 0651 201 3436   Telefax: 0651 201 3921              (_)/ (_)

 
 
 

/usr/sbin/quota SLOW without quotas

Post by Guenther Gra » Sat, 15 May 1999 04:00:00



> > If you don't use quotas on certain NFS filesystems, you
> > should mount then "noquota".

> for readers using Solaris < 2.6: before 2.6 quota ignores the
> noquota - Option!!

Btw, where is the noquota option documented? I only
found it in man mount_nfs. man mount_ufs only shows
option quota, not noquota. This still holds true
for Solaris 7.

  Guenther

 
 
 

/usr/sbin/quota SLOW without quotas

Post by Andrew Gabri » Sat, 15 May 1999 04:00:00




Quote:>I am building lsof right now to see which processes still
>use these mount points.

I won't discourage you from building lsof as it's excellent,
but for this, you can:  fuser -cu /mountpoint

--
Andrew Gabriel
Consultant Software Engineer

 
 
 

/usr/sbin/quota SLOW without quotas

Post by Casper H.S. Dik - Network Security Engine » Sat, 15 May 1999 04:00:00


[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]


>> If you don't use quotas on certain NFS filesystems, you
>> should mount then "noquota".
>for readers using Solaris < 2.6: before 2.6 quota ignores the
>noquota - Option!!

Only if you run "quota -v"; "quota" as run from /etc/profile and
/etc/.login dos ignore noquota mounted filesystems.

For "quota -v" there are 2.5.1/2.6 patches.

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.

 
 
 

/usr/sbin/quota SLOW without quotas

Post by Casper H.S. Dik - Network Security Engine » Sat, 15 May 1999 04:00:00


[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]



>> > If you don't use quotas on certain NFS filesystems, you
>> > should mount then "noquota".

>> for readers using Solaris < 2.6: before 2.6 quota ignores the
>> noquota - Option!!
>Btw, where is the noquota option documented? I only
>found it in man mount_nfs. man mount_ufs only shows
>option quota, not noquota. This still holds true
>for Solaris 7.

Most options come with an implicit "noXXX" option.  "noquota" is only
checked for NFS, though.

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.

 
 
 

1. /usr/sbin/quota runs slow on solaris 7

Hi,

Sorry if this is a stupid question. I'm very new to solaris. I just had
a problem with the quota command. It takes about 1 min to run for a
regular user. Everything was fine yesterday. I don't know what
happened. Actually I don't have quota setup on my system as follows:

# repquota -v -a
quotactl: no quotas file on any mounted file system

But when a regular user logs in, it takes about 1 minute to run
the /usr/sbin/quota command which means they have to wait that long
before they can get a shell prompt.

Thanks in advance for any help.

Wei

Sent via Deja.com http://www.deja.com/
Before you buy.

2. updated preemptive kernel for 2.4.21

3. slow logins caused by /usr/sbin/quota

4. Two mouses

5. Quotas : Format of quota.users & quota.groups ?

6. dialup line hangup & respawning too fast error

7. /usr/sbin/quota causes login delay

8. RPM compile problem

9. /usr/sbin/traceroute ha1 ksh: /usr/sbin/traceroute: not found

10. Quotas on Solaris vs quotas on Linux

11. user quotas and printer usage quotas on NT domain

12. quota: format of quota.user

13. QUOTA - Crashes whenever someone goes over quota