Hello,
I noticed a strange behavior on FreeBSD 9.1. When I run a jail, it seems some processes are forked:
cron jobs are executed two times. Same thing for sendmail.
Another issue, I run a Left4dead2 server in a jail with the Linux emulation layer. The server is run five or six times at startup with some <defunct> zombie process and some remain in "futex" state. I have to kill them by hand but they come back at each server restart.
I have made a little sample code to test if fork() works well:
The code run fine and only two process are running.
So, have I missed something with the jail?
The server runs on a dedicated OVH server but all the kernel and userland have been recompiled and installed on a clean ZFS partition. Maybe a kernel option can cause this issue?
Thanks.
I noticed a strange behavior on FreeBSD 9.1. When I run a jail, it seems some processes are forked:
Code:
ps aux
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
root 3465 0.0 0.0 20376 3460 ?? SsJ 8:20AM 0:00.04 sendmail: accepting connections (sendmail)
smmsp 3468 0.0 0.0 20376 3376 ?? IsJ 8:20AM 0:00.00 sendmail: Queue runner@00:30:00 for /var/spool/clientmqueue (sendmail)
root 3472 0.0 0.0 14128 1440 ?? IsJ 8:20AM 0:00.01 /usr/sbin/cron -s
root 3547 0.0 0.0 12052 1496 ?? SsJ 8:20AM 0:00.01 /usr/sbin/syslogd -s
root 3595 0.0 0.0 46744 3536 ?? IsJ 8:20AM 0:00.00 /usr/sbin/sshd
smmsp 3748 0.0 0.0 20380 3420 ?? IsJ 8:22AM 0:00.00 sendmail: Queue runner@00:30:00 for /var/spool/clientmqueue (sendmail)
root 3752 0.0 0.0 14128 1480 ?? IsJ 8:22AM 0:00.01 /usr/sbin/cron -s
Another issue, I run a Left4dead2 server in a jail with the Linux emulation layer. The server is run five or six times at startup with some <defunct> zombie process and some remain in "futex" state. I have to kill them by hand but they come back at each server restart.
I have made a little sample code to test if fork() works well:
Code:
int main(int argc, char ** argv)
{
int pid = fork();
if(pid == 0)
{
printf("forked children!\n");
}
else
{
printf("parent!\n");
}
while(1)
sleep(1);
}
So, have I missed something with the jail?
Code:
uname -a
FreeBSD nsXXXXX.XXX.net 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Thu Mar 14 22:45:06 CET 2013 root@nsXXXXXX.XXX.net:/usr/obj/usr/src/sys/PGMKERN amd64
Thanks.