Date: Tue, 30 Mar 2004 23:17:39 +0200 From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) To: Robert Watson <rwatson@freebsd.org> Cc: current@freebsd.org Subject: Re: performance of jailed processes Message-ID: <xzpy8piqbkc.fsf@dwp.des.no> In-Reply-To: <Pine.NEB.3.96L.1040330155837.93169O-100000@fledge.watson.org> (Robert Watson's message of "Tue, 30 Mar 2004 16:00:03 -0500 (EST)") References: <Pine.NEB.3.96L.1040330155837.93169O-100000@fledge.watson.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Robert Watson <rwatson@freebsd.org> writes: > On Tue, 30 Mar 2004, Dag-Erling Sm=F8rgrav wrote: > > 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. root@outside /# /usr/bin/time -- sh -c 'echo "my sql query;" | mysql -comma= nd -line -arguments >/dev/null' 0.06 real 0.00 user 0.03 sys root@outside /# jexec 55 zsh root@inside /# /usr/bin/time -- sh -c 'echo "my sql query;" | mysql -comman= d -line -arguments >/dev/null' 13.65 real 0.01 user 0.04 sys so it's definitely not CPU overhead - more likely a scheduling problem. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpy8piqbkc.fsf>