Re: FreeBSD 4.8R sluggish performance

From: Matthew Seaman (m.seaman_at_infracaninophile.co.uk)
Date: 05/31/04

  • Next message: Dan Nelson: "Re: NFS server fail-over - how do you do it?"
    Date: Mon, 31 May 2004 20:39:23 +0100
    To: Scott <scot-gale@excite.com>
    
    
    

    On Mon, May 31, 2004 at 03:17:30PM -0400, Scott wrote:

    > If I try to ping a host on the internet (e.g. freebsd.org), I
    > get all the packets, but the output of the command doesn't
    > begin for at least 10 seconds. If I try startx, it takes about
    > 30 seconds just to begin to display the root window. Even
    > backspacing seems much slower.
    >
    > While this is going on, no unusual processes are running and
    > the CPU is practically unused. Nor is it merely a matter of
    > delay--the CPU usage never spikes up like it normally would. It
    > just sits mostly idle while the command I've issued takes a
    > long time to complete.

    This sounds to me a lot like DNS trouble. If for some reason the
    first listed nameserver in your /etc/resolv.conf was not working
    correctly, but the second or third one was, it could have the result
    you describe: a lot of commands mysteriously hang for what feels like
    forever, but is usually less than a minute.

    > I can always tell when the problem will occur based upon what
    > happens at boot. There are no error messages, but the slowness
    > begins when the standard daemons are loading. Cron and sshd
    > load just fine, but the delay occurs as sendmail loads, and
    > there is another delay as sendmail-clientmqueue loads. Once
    > that happens I know I'm in trouble thereafter.

    Yup. sendmail is a very heavy DNS user and it won't start up without
    doing lookups on a load of stuff. sendmail hanging on startup is
    pretty much diagnostic for DNS troubles.
     
    > I know this isn't much to go on, but does anyone have any clue
    > on what I might try? Thank you.

    Are you using DHCP to configure your network interface? That should
    create a /etc/resolv.conf file for you automatically. In that file you
    should see at least two 'nameserver' lines containing the addresses of
    some DNS servers provided by your ISP. You can test whether your
    system can do lookups via those servers by:

        % dig @12.34.56.78 www.freebsd.org

    where '12.34.56.78' should be replaced by each of the nameserver IP
    numbers from /etc/resolv.conf in turn. If things are working
    correctly you should get a response in a few milliseconds.

    If you can confirm that is the problem, then you may be able to edit
    the /etc/resolv.conf file and reorder the nameserver lines so that a
    communicative server is listed first. That however is just a band-aid
    and you will need to find out why your ISP's servers cannot be
    queried. Make sure you check your firewall configuration carefully --
    it's very embarassing to complain to tech support and then find that
    it was you blocking the traffic all along.

            Cheers,

            Matthew

    -- 
    Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                          Savill Way
    PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
    Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
    
    



  • Next message: Dan Nelson: "Re: NFS server fail-over - how do you do it?"

    Relevant Pages

    • [2/3] POHMELFS: Documentation.
      ... * Client is able to switch between different servers (if one goes down, ... * Read requests balancing between multiple servers. ... Each transaction contains all information needed to process given command ...
      (Linux-Kernel)
    • Re: AD 2003 - Time Services
      ... You shouldn't have run the /setsntp command on anything other than the PDCe. ... All other domain members are set, by default, to use Nt5Ds -which means the ... Win2000/2003 Servers in a mixed-mode 2003 Active Directory. ... The time service is no longer synchronized and cannot provide the time to other clients or update the system clock. ...
      (microsoft.public.windows.server.active_directory)
    • Re: Dump of user accounts
      ... Both are LDAP servers and both support LDIFDE.exe, ... you can omit the attributes from the ... the command will run using the credentials of the ...
      (microsoft.public.win2000.active_directory)
    • Re: Continuing internet oddities
      ... For 'route -n': ... and open a command prompt terminal and give the command "ipconfig" (or ... For 'cat /etc/resolv.conf': ... Your nameserver is on a completely different subnet. ...
      (Debian-User)
    • Re: Userenv Error 1030, 1058
      ... But when i give this command at the command prompt of the D.C it says ... I have 3 servers in our office running win 2003 R2 servers ... Windows cannot query for the list of Group Policy objects. ...
      (microsoft.public.windows.server.general)