Re: 40% slowdown with dynamic /bin/sh

From: Leo Bicknell (bicknell_at_ufp.org)
Date: 11/25/03

  • Next message: M. Warner Losh: "Re: 40% slowdown with dynamic /bin/sh"
    Date: Mon, 24 Nov 2003 21:08:29 -0500
    To: freebsd-current@freebsd.org
    
    
    

    In a message written on Tue, Nov 25, 2003 at 12:12:59PM +1030, Daniel O'Connor wrote:
    > If you have a file, web, mail, database, etc server it's predominant
    > application is already dynamically linked.

    It just occured to me what bothers me about this line of thinking,
    since several people have brought it up. When I run kwrite, or
    Mozilla, or any number of other dynamic apps they are relatively
    long lived. My database loads (eg, pays the dynamic link penalty)
    once at startup. By contrast /bin/sh is run often.

    Process accounting can tell the story:

    % lastcomm | wc -l
       47806
    % lastcomm | sed -e 's/ .*.//' | sort | uniq -c | sort -nr | head
    25281 sendmail
    4094 sh
    2987 perl
    2846 inetd
    1704 procmail
    1640 httpd
    1221 cron
     814 date
     732 postgres
     648 rateup

    Looks like sh is the 2nd most frequently executed command on my
    system. It is 8.5% of all executed programs on this particular
    system. I think slowing down 8.5% of all the programs the system
    runs is important.

    I don't suggest I am representative, but for all those with process
    accounting turned on you have the commands above, check it out.

    > If you are deploying FreeBSD on servers you should build your own release
    > anyway (which is hardly an onerous task).

    What? Did you read what you wrote? It was a stand alone paragraph,
    I didn't take it out of context. People who use FreeBSD on servers
    should build their own release? That's so nutz I don't know where
    to start to attack it. I think I'll leave it to the third point from
    www.freebsd.org:

    ] FreeBSD makes an ideal Internet or Intranet server. It provides robust
    ] network services under the heaviest loads and uses memory efficiently to
    ] maintain good response times for thousands of simultaneous user
    ] processes. Visit our gallery for examples of FreeBSD powered
    ] applications and services.

    -- 
           Leo Bicknell - bicknell@ufp.org - CCIE 3440
            PGP keys at http://www.ufp.org/~bicknell/
    Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org
    
    



  • Next message: M. Warner Losh: "Re: 40% slowdown with dynamic /bin/sh"

    Relevant Pages

    • RE: Restored to New server and cannot logon to STS_Config
      ... > The Application Pools user is "Network Services" ... > the database access tab. ... you must first determine the application pool identity. ... Right-click the virtual server that is running Windows SharePoint ...
      (microsoft.public.sharepoint.portalserver)
    • Create SharePoint Portal failed.
      ... One mentioned ensuring that SQL Server uses a case ... 13:55:40 Service database server is 'USDC-JOHRIV'. ... Update dbo.propertylist set DisplayName = N'Last name' ...
      (microsoft.public.sharepoint.portalserver)
    • Re: ADO Connection Timeout
      ... to the central server, but you are willing to live with periods where it ... i.e. a local database or even a text file. ... to function until the connection can be restored to the server. ...
      (microsoft.public.data.ado)
    • Web Developers - Happy Hearts And HDTV! - Lockergnome
      ... Certificate on your MSIIS Web server. ... getting data from a database is only half the problem. ... Zend recently started a series about building rock solid code in PHP. ... which provides bulk database conversion. ...
      (freebsd-questions)
    • Re: TNS could not resolve the connect identifier
      ... This database resides on Machine A. ... The Web server is running on Machine B. ... Using tnsping is not as good as using a real connection such as via ... client (note that this is terminology that appears in the 10g R2 ...
      (comp.databases.oracle.server)

    Loading