performance of jailed processes

Dag-ErlingSmørgrav des at des.no
Tue Mar 30 13:17:47 PST 2004


Robert Watson <rwatson at 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 at 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 at outside /# jexec 55 zsh
root at 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.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-current mailing list