Re: performance of jailed processes

From: Robert Watson (rwatson_at_freebsd.org)
Date: 03/30/04

  • Next message: Dag-Erling Smørgrav: "Re: performance of jailed processes"
    Date: Tue, 30 Mar 2004 16:00:03 -0500 (EST)
    To: Dag-Erling Smørgrav <des@des.no>
    
    

    On Tue, 30 Mar 2004, Dag-Erling Smørgrav wrote:

    > Robert Watson <rwatson@freebsd.org> writes:
    > > Somewhat more painful suggestion, but could you generate ktraces against a
    > > mysql client doing the query inside and out of jail, then using whatever
    > > flag sets relative timestamps on kdump, diff the two and see where the
    > > substantial differences begin?
    >
    > I'll give it a shot tomorrow.

    I've had quite a bit of luck resolving mysql problems in jail using this
    approach, fwiw, during some confusion relating to UNIX domain sockets at
    an ISP I provide some help to.

    > > 13 seconds is too long for most of the potential things I have in mind...
    >
    > although the query only returns one row, it's a pretty big row, so 13
    > seconds could be explained by per-syscall or per-packet overhead.

    Theory goes that there should be no per-read/write system call change in
    behavior for TCP with jail. Jail impacts bind/connect, and potentially
    each I/O on UDP for an unbound socket using sendto.

    Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
    robert@fledge.watson.org Senior Research Scientist, McAfee Research

    _______________________________________________
    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: Dag-Erling Smørgrav: "Re: performance of jailed processes"

    Relevant Pages

    • Re: performance of jailed processes
      ... but could you generate ktraces against a ... > mysql client doing the query inside and out of jail, ...
      (freebsd-current)
    • How to build a chroot jail with mysql client and cron in it?
      ... I need a chroot jail with access to a mysql client (which, of course, ... must have access to the mysql server) and with cron in it. ... Building an "ordinary" jail was no problem, but myql and cron keep me ...
      (Debian-User)
    • RE: Help with a (relatively simple?) query
      ... This new function that I'm creating the query for, however, ... say the autonumber field, go directly to jail and do not pass go! ... can tell the last record added by doing a Max on the date/time field. ...
      (microsoft.public.access.queries)