Your message dated Sun, 09 Mar 2008 23:21:35 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Re: Bug#469723: tc: netem doesn't work
has caused the Debian Bug report #469723,
regarding tc: netem doesn't work
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
469723: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469723
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: iproute
Version: 20080108-1
Severity: normal

--- Please enter the report below this line. ---

I tried out these commands from [1] and they didn't work:
# tc qdisc change dev eth0 root netem corrupt 0.1%
RTNETLINK answers: No such file or directory
# tc qdisc change dev eth0 root netem delay 100ms
RTNETLINK answers: No such file or directory

I tried on stock debian kernel 2.6.24-1-686 SMP, and also on a custom
built 2.6.25-rc4, and I get errors on both.
I tried downloading the latest iproute2 sources, and I still got the
same. I downloaded the latest git sources of iproute2 with same results.

How can I find out what file is RTNETLINK missing? (see attachment for a
strace output)

I see it searches for q_netem.so and fails, but AFAICT this is now built
into tc directly, and it doesn't abort there, so I don't think that  is
the problem.

[1] http://www.linux-foundation.org/en/Net:Netem

--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.24-1-686

Debian Release: lenny/sid
  500 unstable        ftp.ro.debian.org
  500 testing         ftp.ro.debian.org

--- Package information. ---
Depends       (Version) | Installed
=======================-+-===========
libc6        (>= 2.7-1) | 2.7-8
libdb4.6                | 4.6.21-5


execve("/usr/sbin/tc", ["tc", "qdisc", "change", "dev", "eth0", "root", 
"netem", "delay", "100ms"], [/* 12 vars */]) = 0
brk(0)                                  = 0x807d000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7f95000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=57435, ...}) = 0
mmap2(NULL, 57435, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f86000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i686/cmov/libresolv.so.2", O_RDONLY) = 3
read(3, "[EMAIL PROTECTED]"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=69068, ...}) = 0
mmap2(0x4fc56000, 75972, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) 
= 0x4fc56000
mmap2(0x4fc65000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf) = 0x4fc65000
mmap2(0x4fc67000, 6340, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4fc67000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i686/cmov/libm.so.6", O_RDONLY) = 3
read(3, "[EMAIL PROTECTED]"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=151144, ...}) = 0
mmap2(0x4f38e000, 147584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) 
= 0x4f38e000
mmap2(0x4f3b1000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23) = 0x4f3b1000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i686/cmov/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\3526O"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=11348, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7f85000
mmap2(0x4f36e000, 12412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) 
= 0x4f36e000
mmap2(0x4f370000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x4f370000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i686/cmov/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260U#O"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1359456, ...}) = 0
mmap2(0x4f21f000, 1361520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
0) = 0x4f21f000
mmap2(0x4f366000, 12288, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x147) = 0x4f366000
mmap2(0x4f369000, 9840, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4f369000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7f84000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7f846b0, limit:1048575, 
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, 
useable:1}) = 0
mprotect(0x4f366000, 4096, PROT_READ)   = 0
munmap(0xb7f86000, 57435)               = 0
brk(0)                                  = 0x807d000
brk(0x809e000)                          = 0x809e000
open("/proc/net/psched", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7f94000
read(3, "000003e8 00000400 000f4240 3b9ac"..., 1024) = 36
close(3)                                = 0
munmap(0xb7f94000, 4096)                = 0
socket(PF_NETLINK, SOCK_RAW, 0)         = 3
setsockopt(3, SOL_SOCKET, SO_SNDBUF, [32768], 4) = 0
setsockopt(3, SOL_SOCKET, SO_RCVBUF, [32768], 4) = 0
bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(3, {sa_family=AF_NETLINK, pid=9290, groups=00000000}, [12]) = 0
time(NULL)                              = 1204828231
open("/usr/lib/tc/q_netem.so", O_RDONLY) = -1 ENOENT (No such file or directory)
send(3, "\24\0\0\0\22\0\1\3H8\320G\0\0\0\0\0\0\0\0", 20, 0) = 20
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, 
msg_iov(1)=[{"\354\0\0\0\20\0\2\0H8\320GJ$\0\0\0\0\4\3\1\0\0\0I\0\1\0"..., 
16384}], msg_controllen=0, msg_flags=0}, 0) = 480
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, 
msg_iov(1)=[{"\24\0\0\0\3\0\2\0H8\320GJ$\0\0\0\0\0\0\1\0\0\0I\0\1\0\0"..., 
16384}], msg_controllen=0, msg_flags=0}, 0) = 20
sendmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, 
msg_iov(1)=[{"L\0\0\0$\0\5\0I8\320G\0\0\0\0\0\0\0\0\2\0\0\0\0\0\0\0\377"..., 
76}], msg_controllen=0, msg_flags=0}, 0) = 76
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, 
msg_iov(1)=[{"$\0\0\0\2\0\0\0I8\320GJ$\0\0\376\377\377\377L\0\0\0$\0"..., 
16384}], msg_controllen=0, msg_flags=0}, 0) = 36
dup(2)                                  = 4
fcntl64(4, F_GETFL)                     = 0x8001 (flags O_WRONLY|O_LARGEFILE)
close(4)                                = 0
write(2, "RTNETLINK answers: No such file "..., 45RTNETLINK answers: No such 
file or directory
) = 45
close(3)                                = 0
exit_group(2)                           = ?
Process 9290 detached

--- End Message ---
--- Begin Message ---
Hello!

On tor, 2008-03-06 at 20:32 +0200, Török Edwin wrote:
> Package: iproute
> Version: 20080108-1
> Severity: normal
> 

Please try to add netem before you change it, as shown in the first
example command on the Netem homepage which you gave the url to below[1]
and it should work.

Starting with this command the others should work as well:
tc qdisc add dev eth0 root netem delay 100ms


> I tried out these commands from [1] and they didn't work:
> # tc qdisc change dev eth0 root netem corrupt 0.1%
> RTNETLINK answers: No such file or directory
> # tc qdisc change dev eth0 root netem delay 100ms
> RTNETLINK answers: No such file or directory
> 
> I tried on stock debian kernel 2.6.24-1-686 SMP, and also on a custom
> built 2.6.25-rc4, and I get errors on both.
> I tried downloading the latest iproute2 sources, and I still got the
> same. I downloaded the latest git sources of iproute2 with same results.
> 
> How can I find out what file is RTNETLINK missing? (see attachment for a
> strace output)

The RTNETLINK reply is from the kernel. You can usually assume that
either you haven't got support for a function you are trying to use in
your kernel (but official debian kernels should autoload the sch_netem
module for you), or that you are trying to alter something which you
haven't yet created when you get "missing" reply.


> I see it searches for q_netem.so and fails, but AFAICT this is now built
> into tc directly, and it doesn't abort there, so I don't think that  is
> the problem.
> 
> [1] http://www.linux-foundation.org/en/Net:Netem
> 

Feel free to reopen the bug report if you still feel that this is a bug
in iproute which I have failed to spot. If you need further assistance,
feel free to contact me which more questions and I'll try to help even
thought I don't have much experience with netem.


-- 
Regards,
Andreas Henriksson



--- End Message ---

Reply via email to