Re: performance of jailed processes
From: Pawel Jakub Dawidek (pjd_at_FreeBSD.org)
Date: 03/31/04
- Previous message: Dag-Erling Smørgrav: "Re: performance of jailed processes"
- In reply to: Dag-Erling Smørgrav: "Re: performance of jailed processes"
- Next in thread: Dag-Erling Smørgrav: "Re: performance of jailed processes"
- Reply: Dag-Erling Smørgrav: "Re: performance of jailed processes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 31 Mar 2004 00:21:02 +0200 To: Dag-Erling Sm?rgrav <des@des.no>
On Tue, Mar 30, 2004 at 11:17:39PM +0200, Dag-Erling Sm?rgrav wrote:
+> Robert Watson <rwatson@freebsd.org> writes:
+> > On Tue, 30 Mar 2004, Dag-Erling Sm?rgrav 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 -command -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 -command -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.
Could you try chroot to / ? By doing:
# jail / test <YOUR_IP> `which zsh`
# <your test>
?
-- Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am!
- application/pgp-signature attachment: stored
- Previous message: Dag-Erling Smørgrav: "Re: performance of jailed processes"
- In reply to: Dag-Erling Smørgrav: "Re: performance of jailed processes"
- Next in thread: Dag-Erling Smørgrav: "Re: performance of jailed processes"
- Reply: Dag-Erling Smørgrav: "Re: performance of jailed processes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|