Re: performance of jailed processes

From: Eirik Oeverby (ltning_at_anduin.net)
Date: 03/30/04

  • Next message: Colin Percival: "Re: Small typo in the setproctitle() output in sbin/fsck_ffs/pass5.c"
    Date: Tue, 30 Mar 2004 22:22:32 +0200
    To: Dag-Erling Smørgrav <des@des.no>
    
    

    Hi there,

    and I thought I was using jails on a 'big' scale... 400 jails on one
    single box, that's pretty amazing! What kind of jails are these, i.e.
    what are they used for? Encapsulating single processes/tasks only, or
    more complex things too? And what hardware are you on, CPU and memory-wise?

    /Eirik

    Dag-Erling Smørgrav wrote:
    > Robert Watson <rwatson@freebsd.org> writes:
    >
    >>- DNS -- I know you mentioned it, but I'd check anyway. Especially if
    >> resolv.conf has bad DNS servers in it in the jails, etc. You might try
    >> writing a trivial gethostbyname() test app and timing it in and out of
    >> the jail. Also look at the reverse lookup done by the MySQL server.
    >> The impact of the source IP address might be particularly interesting.
    >
    >
    > Packet traces already show that there is no delay between query and
    > reply, the reply just takes a long time to transmit.
    >
    >
    >>- It would be interesting to know if applications outside the jail bound
    >> to various IP addresses see performance differences depending on the IP
    >> used. We have hashed IP address lookup, but there are some operations
    >> in the stack that require walking the list of addresses, etc. If the
    >> non-jailed software always uses the first address because they're all in
    >> the same subnet, that might conceivably make a difference. Taking jail
    >> out of the picture in some basic micro-benchmarks might help here also.
    >
    >
    > Non-jailed software always uses the first IP address, which is in its
    > own subnet. The jails draw from a pool of ~1000 IP addresses on the
    > same interface, but in a different subnet. The jail I've been testing
    > in is about a quarter of the way down the list.
    >
    >
    >>Can you identify any micro-benchmarks rather than macro-benchmarks that
    >>reflect a significant difference?
    >
    >
    > haven't had much luck with that... fetch, for instance, doesn't seem
    > to suffer, but with mysql the difference is dramatic:
    >
    > (outside jail)
    > 1 row in set (0.01 sec)
    >
    > (inside jail)
    > 1 row in set (13.20 sec)
    >
    > note that 13 seconds is far too short for a DNS issue, and that the
    > time reported is measured *after* login (i.e. after any DNS lookup)
    >
    > DES
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: Colin Percival: "Re: Small typo in the setproctitle() output in sbin/fsck_ffs/pass5.c"

    Relevant Pages

    • Re: performance of jailed processes
      ... > a jail takes an order of magnitude more time than from outside the jail. ... Also look at the reverse lookup done by the MySQL server. ... - Compare the impact of jailvs chroot() for configure performance. ...
      (freebsd-current)
    • pam _start: system error
      ... After installing mysql-server-5.0.45 from ports, ... I can`t get up and running my mysql server. ... I have to point out that this problem is only inside the jail. ... su: pam_start: system error ...
      (freebsd-questions)
    • Re: performance of jailed processes
      ... > resolv.conf has bad DNS servers in it in the jails, ... > the jail. ... > the same subnet, that might conceivably make a difference. ...
      (freebsd-current)
    • Re: Make a jail visible in different networks
      ... I set up mpd4 on this server in order to allow M$ clients access our 10.5.1.0/24 vpn. ... I need to have my jail serving in both LAN and VPN networks. ... static routes between your 10.5.1/24 subnet and your 192.168.1/24 subnet, or setting up additional VPN endpoint on the 192.168.1/24 network, or using NAT to map the jail IP onto the 10.5.1/24 netblock. ...
      (freebsd-questions)
    • Re: performance of jailed processes
      ... >> resolv.conf has bad DNS servers in it in the jails, ... >> the jail. ... Also look at the reverse lookup done by the MySQL server. ... >> the same subnet, that might conceivably make a difference. ...
      (freebsd-current)