From: Henrik N. <hn...@ma...> - 2001-06-27 12:38:21
|
Steve Traugott wrote: > In my case I also had to set HZ=100 to get rid of the above ping > problem. Works fine here, using ping from RedHat 6.2. UML: 2.4.6-pre3-6um Host kernel: 2.4.<something>. /dev/rtc is available on the host but not in use (module not loaded, is automatically on use by kmod). The ping binary I have uses setitimer(ITIMER_REAL, it_interval = 0, it_value = 1 second), plus a number of gettimeofday() calls per packet (3 per packet). Example strace of a working ping within UML: write(1, "64 bytes from 127.0.0.1: icmp_se"..., 58) = 58 recvfrom(3, <unfinished ...> --- SIGALRM (Alarm clock) --- <... recvfrom resumed> 0x805d3e0, 192, 0, 0xbf7ffd74, 0xbf7ffd08) = -1 EINTR (Interrupted system call) gettimeofday({993645057, 75839}, NULL) = 0 gettimeofday({993645057, 106635}, NULL) = 0 sendmsg(3, {msg_name(16)={sin_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("127.0.0.1")}}, msg_iov(1)=[{"\10\0\35O!\0\7\0\1\3229;\213\240\1\0\10\t\n\v\f\r\16\17"..., 64}], msg_controllen=0, msg_flags=0}, 0x800) = 64 setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={1, 0}}, NULL) = 0 recvfrom(3, "E\0\0T\357\362\0\0\377\1\315\263\177\0\0\1\177\0\0\1\0"..., 192, 0, {sin_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("127.0.0.1")}}, [16]) = 84 gettimeofday({993645057, 246200}, NULL) = 0 socket(PF_UNIX, SOCK_STREAM, 0) = 4 connect(4, {sin_family=AF_UNIX, path=" /var/run/.nscd_socket"}, 110) = -1 ENOENT (No such file or directory) close(4) = 0 open("/etc/hosts", O_RDONLY) = -1 ENOENT (No such file or directory) write(1, "64 bytes from 127.0.0.1: icmp_se"..., 58) = 58 recvfrom(3, <unfinished ...> If yours look similar then there MAY be a UML issue with time depending on something on the host. -- Henrik Nordstrom MARA Systems |