OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Steven Boger (sbogercorp.classmates.com)
Date: Wed May 02 2001 - 18:32:41 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    I'll see you, and raise you..... using find is just as fast, and more
    accurate...

    -S

    [rootandromeda postfix]# time mailq | tail -1
    0.02user 0.01system 0:00.29elapsed 10%CPU (0avgtext+0avgdata 0maxresident)k
    0inputs+0outputs (149major+19minor)pagefaults 0swaps
    -- 6798 Kbytes in 1648 Requests.

    [rootandromeda postfix]# time find active incoming deferred -type f | wc
    0.01user 0.02system 0:00.03elapsed 96%CPU (0avgtext+0avgdata 0maxresident)k
    0inputs+0outputs (97major+28minor)pagefaults 0swaps
       1648 1648 39084

    [rootandromeda postfix]# time du active incoming deferred | wc
    0.01user 0.02system 0:00.03elapsed 78%CPU (0avgtext+0avgdata 0maxresident)k
    0inputs+0outputs (113major+35minor)pagefaults 0swaps
        525 1050 8364

    -----Original Message-----
    From: wietseporcupine.org [mailto:wietseporcupine.org]
    Sent: Wednesday, May 02, 2001 4:14 PM
    To: Postfix users
    Subject: Re: Queue count question

    If you have many files, try:

        # du active incoming deferred | wc

    It won't go much faster than that.

            Wietse

    Chris Terrebonne :
    > I seem to have a massive queue and that command still hasn't finished.
    > I was hoping for just a count of the number of files.
    > Any Ideas?
    >
    > Thanks,
    > Chris
    >
    > ----------------------------------------------
    > Original Message
    > From: "Ben Rosengart"<brpanix.com>
    > Subject: Re: Queue count question
    > Date: Wed, 2 May 2001 17:26:00 -0400
    >
    > >On Wed, May 02, 2001 at 10:52:18PM +0200, Thijs Kinkhorst wrote:
    > >> At 22:45 02-05-2001, you wrote:
    > >> >Are there any programs/scripts that will quickly return the number of
    > >> >messages in the queue?
    > >>
    > >> Try:
    > >>
    > >> mailq | tail -1
    > >
    > >You call that quick? mailq produces half a MB of output on my
    > >systems, and takes a while to run.
    > >
    > >--
    > >Ben Rosengart
    > >(212) 741-4400 x215
    > >
    > >"My hair is my password. Verify me."
    > >
    > >-
    > >To unsubscribe, send mail to majordomopostfix.org with content
    > >(not subject): unsubscribe postfix-users
    > >
    >
    > _____________________________________________
    > Free email with personality! Over 200 domains!
    > http://www.MyOwnEmail.com
    >
    >
    > -
    > To unsubscribe, send mail to majordomopostfix.org with content
    > (not subject): unsubscribe postfix-users
    >
    >

    -
    To unsubscribe, send mail to majordomopostfix.org with content
    (not subject): unsubscribe postfix-users

    -
    To unsubscribe, send mail to majordomopostfix.org with content
    (not subject): unsubscribe postfix-users