how to debug RTNETLINK invalid argument?
Hey,
I am getting an invalid argument trying to insert a qdisc:
[root@emu-5 iproute2]# tc qdisc add dev eth0 root xcp capacity 50Mbit limit 500
RTNETLINK answers: Invalid argument
I'm not sure whats wrong here, because i can successfully insert this qdisc on other computers of mine.
How can i debug this?
Thanks!
George
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 4 lines · George Nychis
Hey,
I am getting an invalid argument trying to insert a qdisc:
Quoted 9 lines
[root@emu-5 iproute2]# tc qdisc add dev eth0 root xcp capacity 50Mbit limit 500
RTNETLINK answers: Invalid argumentI'm not sure whats wrong here, because i can successfully insert this qdisc on other computers of mine.
How can i debug this?
Check to see which kernel versions you have on the boxes that work and the one that
does not. Also check to see if you have the latest version of iproute2 installed on the
machine that does not work.
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 12 lines · Larry Brigman
Quoted 11 lines · George Nychis
Hey,
I am getting an invalid argument trying to insert a qdisc:
[root@emu-5 iproute2]# tc qdisc add dev eth0 root xcp capacity 50Mbit limit 500
RTNETLINK answers: Invalid argumentI'm not sure whats wrong here, because i can successfully insert this qdisc on other computers of mine.
Quoted 8 lines
Quoted 2 lines
How can i debug this?
Check to see which kernel versions you have on the boxes that work and the one that
does not. Also check to see if you have the latest version of iproute2 installed on the
machine that does not work.
They are both running the exact same kernel and version of iproute2, however they are in different environments, what could the environment have to do with it?
Thanks!
George
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 24 lines · George Nychis
Quoted 12 lines · Larry Brigman
Quoted 11 lines · George Nychis
Hey,
I am getting an invalid argument trying to insert a qdisc:
[root@emu-5 iproute2]# tc qdisc add dev eth0 root xcp capacity 50Mbit limit 500
RTNETLINK answers: Invalid argumentI'm not sure whats wrong here, because i can successfully insert this qdisc on other computers of mine.
Quoted 8 lines
Quoted 2 lines
How can i debug this?
Check to see which kernel versions you have on the boxes that work and the one that
does not. Also check to see if you have the latest version of iproute2 installed on the
machine that does not work.
Quoted 4 lines
They are both running the exact same kernel and version of iproute2, however they are in different environments, what could the environment have to do with it?
Modules that are not loaded? modprobe.conf?
lsmod on both boxes looking for specific networking modules.
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 25 lines · Larry Brigman
Quoted 24 lines · George Nychis
Quoted 20 lines · Larry Brigman
Quoted 4 lines · George Nychis
Hey,
I am getting an invalid argument trying to insert a qdisc:
Quoted 9 lines
[root@emu-5 iproute2]# tc qdisc add dev eth0 root xcp capacity 50Mbit limit 500
RTNETLINK answers: Invalid argumentI'm not sure whats wrong here, because i can successfully insert this qdisc on other computers of mine.
How can i debug this?
Check to see which kernel versions you have on the boxes that work and the one that
does not. Also check to see if you have the latest version of iproute2 installed on the
machine that does not work.
Quoted 7 lines
Quoted 4 lines
They are both running the exact same kernel and version of iproute2, however they are in different environments, what could the environment have to do with it?
Modules that are not loaded? modprobe.conf?
lsmod on both boxes looking for specific networking modules.
What modules would qdisc's be dependent on? The weird thing is, netem works on both machines... therefore I know qdisc's in general are working. Lets just say its not working on my other machine, how do i go about debugging it on the one machine alone?
- George
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 28 lines · George Nychis
Quoted 27 lines · Larry Brigman
Quoted 26 lines · George Nychis
Quoted 12 lines · Larry Brigman
Quoted 11 lines · George Nychis
Hey,
I am getting an invalid argument trying to insert a qdisc:
[root@emu-5 iproute2]# tc qdisc add dev eth0 root xcp capacity 50Mbit limit 500
RTNETLINK answers: Invalid argumentI'm not sure whats wrong here, because i can successfully insert this qdisc on other computers of mine.
Quoted 8 lines
Quoted 2 lines
How can i debug this?
Check to see which kernel versions you have on the boxes that work and the one that
does not. Also check to see if you have the latest version of iproute2 installed on the
machine that does not work.They are both running the exact same kernel and version of iproute2, however they are in different environments, what could the environment have to do with it?
Quoted 9 lines
Quoted 3 lines
Modules that are not loaded? modprobe.conf?
lsmod on both boxes looking for specific networking modules.What modules would qdisc's be dependent on? The weird thing is, netem works on both machines... therefore I know qdisc's in general are working. Lets just say its not working on my other machine, how do i go about debugging it on the one machine alone?
Has the tc command been changed recently from your customized version back to the standard release (ie yum running via cron) or your environment path changed to
pick up the wrong tc command?
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 42 lines · Larry Brigman
Quoted 31 lines · George Nychis
Quoted 8 lines · Larry Brigman
Quoted 7 lines · George Nychis
Quoted 6 lines · Larry Brigman
Quoted 5 lines · George Nychis
Hey,
I am getting an invalid argument trying to insert a qdisc:
[root@emu-5 iproute2]# tc qdisc add dev eth0 root xcp capacity
50Mbit
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
limit 500
RTNETLINK answers: Invalid argumentI'm not sure whats wrong here, because i can successfully insert
this
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
qdisc on other computers of mine.
How can i debug this?
Check to see which kernel versions you have on the boxes that
work and
Quoted 10 lines
Quoted 10 lines
Quoted 5 lines
the one that
does not. Also check to see if you have the latest version of iproute2 installed on the
machine that does not work.They are both running the exact same kernel and version of iproute2, however they are in different environments, what could the environment have to do with it?
Quoted 9 lines
Quoted 3 lines
Modules that are not loaded? modprobe.conf?
lsmod on both boxes looking for specific networking modules.What modules would qdisc's be dependent on? The weird thing is, netem works on both machines... therefore I know qdisc's in general are working. Lets just say its not working on my other machine, how do i go about debugging it on the one machine alone?
Quoted 5 lines
Has the tc command been changed recently from your customized version back to the standard release (ie yum running via cron) or your environment path changed to
pick up the wrong tc command?
the tc I am using is the standard tc, i didn't change anything about tc, only trying to use a new custom qdisc with it... i'm not sure honestly, theres no way to figure out why i'm getting the invalid argument?
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 5 lines
the tc I am using is the standard tc, i didn't change anything about tc, only trying to use a new custom qdisc with it... i'm not sure honestly, theres no way to figure out why i'm getting the invalid argument?
A common problem is that some distro's put tc in /sbin and other's in /usr/sbin.
You may have the old version in you path.
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 4 lines · George Nychis
Hey,
I am getting an invalid argument trying to insert a qdisc:
Quoted 8 lines
[root@emu-5 iproute2]# tc qdisc add dev eth0 root xcp capacity 50Mbit limit 500
RTNETLINK answers: Invalid argumentI'm not sure whats wrong here, because i can successfully insert this qdisc on other computers of mine.
How can i debug this?
maybe strace (system calls and signals trace) can give you some clues.
strace tc qdisc add dev eth0 root xcp capacity 50Mbit limit 500
Signature · 8 lines
Luciano -- Luciano _______________________________________________ LARTC mailing list [email protected] http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 9 lines · Luciano Ruete
Quoted 8 lines · George Nychis
Hey,
I am getting an invalid argument trying to insert a qdisc:
[root@emu-5 iproute2]# tc qdisc add dev eth0 root xcp capacity 50Mbit limit 500
RTNETLINK answers: Invalid argument
Quoted 9 lines
Quoted 4 lines
I'm not sure whats wrong here, because i can successfully insert this qdisc on other computers of mine.
How can i debug this?
maybe strace (system calls and signals trace) can give you some clues.
strace tc qdisc add dev eth0 root xcp capacity 50Mbit limit 500
Heres what I get as the output:
execve("/sbin/tc", ["tc", "qdisc", "add", "dev", "eth0", "root", "xcp", "capacity", "50Mbit", "limit", "500"], [/* 22 vars */]) = 0 uname({sys="Linux", node="emu-5", ...}) = 0set_tid_address(0) = -1 ENOSYS (Function not
implemented)
brk(0) = 0x80705cc
brk(0x8071000) = 0x8071000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file ordirectory)open("/etc/ld.so.cache", O_RDONLY) = 3fstat64(3, {st_mode=S_IFREG|0644, st_sizec789, ...}) = 0 old_mmap(NULL, 63789, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40000000
close(3) = 0open("/lib/libresolv.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\0\360\223"...,
512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size�316, ...}) = 0 old_mmap(0x4e2d7000, 80040, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4e2d7000 mprotect(0x4e2e6000, 18600, PROT_NONE) = 0 old_mmap(0x4e2e7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0x4e2e7000 old_mmap(0x4e2e9000, 6312, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4e2e9000
close(3) = 0open("/lib/i686/libm.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\0\263G"...,
512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size!5248, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40010000old_mmap(0x44478000, 139424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x44478000 old_mmap(0x44499000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20000) = 0x44499000
close(3) = 0open("/lib/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\0\260\333"...,
512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size908, ...}) = 0 old_mmap(0x473fd000, 12388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x473fd000 old_mmap(0x473ff000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x473ff000
close(3) = 0open("/lib/i686/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\0p36D4\0"...,
512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size99368, ...}) = 0 old_mmap(0x4434e000, 1211684, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4434e000 mprotect(0x4446f000, 27940, PROT_NONE) = 0 old_mmap(0x44470000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x121000) = 0x44470000 old_mmap(0x44474000, 7460, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x44474000
close(3) = 0
mprotect(0x44470000, 8192, PROT_READ) = 0
mprotect(0x473ff000, 4096, PROT_READ) = 0
mprotect(0x44499000, 4096, PROT_READ) = 0
mprotect(0x4e2e7000, 4096, PROT_READ) = 0
mprotect(0xb8b000, 4096, PROT_READ) = 0
munmap(0x40000000, 63789) = 0
brk(0) = 0x8071000
brk(0x8092000) = 0x8092000
open("/proc/net/psched", O_RDONLY) = 3fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40000000read(3, "000c8000 000f4240 000f4240 00000"..., 4096) = 36
close(3) = 0 munmap(0x40000000, 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) = 0bind(3, {sa_family¯_NETLINK, pid=0, groups 000000}, 12) = 0 getsockname(3, {sa_family¯_NETLINK, pidT07, groups 000000}, [12]) = 0
time(NULL) = 1148447549open("/usr/lib/tc/q_xcp.so", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\270\5\0"...,
512) = 512fstat64(4, {st_mode=S_IFREG|0755, st_sizeA92, ...}) = 0 old_mmap(NULL, 6908, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4,
0) = 0x40000000old_mmap(0x40001000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0) = 0x40001000
close(4) = 0
sendto(3, "\24\0\0\0\22\0\1\3>\353sD\0\0\0\0\0\0\0\0", 20, 0, {sa_family¯_NETLINK, pid=0, groups 000000}, 12) = 20 recvmsg(3, {msg_name(12)={sa_family¯_NETLINK, pid=0, groups 000000}, msg_iov(1)=[{"\264\0\0\0\20\0\2\0>\353sD\37\25\0\0\0\0\4\3\1\0\0\0I\0"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 920
recvmsg(3, {msg_name(12)={sa_family¯_NETLINK, pid=0, groups 000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0>\353sD\37\25\0\0\0\0\0\0\1\0\0\0I\0\0"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 20
sendmsg(3, {msg_name(12)={sa_family¯_NETLINK, pid=0, groups 000000}, msg_iov(1)=[{"8\0\0\0$\0\5\6?\353sD\0\0\0\0\0\0\0\0\2\0\0\0\0\0\0\0\377"..., 56}], msg_controllen=0, msg_flags=0}, 0) = 56
recvmsg(3, {msg_name(12)={sa_family¯_NETLINK, pid=0, groups 000000}, msg_iov(1)=[{"$\0\0\0\2\0\0\0?\353sD\37\25\0\0\352\377\377\3778\0\0\0"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 36
dup(2) = 4fcntl64(4, F_GETFL) = 0x8001 (flags
O_WRONLY|O_LARGEFILE)
close(4) = 0
write(2, "RTNETLINK answers: Invalid argum"..., 36RTNETLINK answers:
Invalid argument
) = 36
close(3) = 0exit_group(2) = ?
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 129 lines · George Nychis
Quoted 9 lines · Luciano Ruete
Quoted 8 lines · George Nychis
Hey,
I am getting an invalid argument trying to insert a qdisc:
[root@emu-5 iproute2]# tc qdisc add dev eth0 root xcp capacity 50Mbit limit 500
RTNETLINK answers: Invalid argumentQuoted 8 lines
Quoted 4 lines
I'm not sure whats wrong here, because i can successfully insert this qdisc on other computers of mine.
How can i debug this?
maybe strace (system calls and signals trace) can give you some clues.
strace tc qdisc add dev eth0 root xcp capacity 50Mbit limit 500
Heres what I get as the output:
execve("/sbin/tc", ["tc", "qdisc", "add", "dev", "eth0", "root", "xcp", "capacity", "50Mbit", "limit", "500"], [/* 22 vars */]) = 0
uname({sys="Linux", node="emu-5", ...})= 0set_tid_address(0)= -1 ENOSYS (Function not
implemented)brk(0) = 0x80705cc brk(0x8071000) = 0x8071000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file ordirectory)
open("/etc/ld.so.cache", O_RDONLY)= 3fstat64(3, {st_mode=S_IFREG|0644, st_sizec789, ...})= 0old_mmap(NULL, 63789, PROT_READ, MAP_PRIVATE, 3, 0)=0x40000000
close(3) = 0open("/lib/libresolv.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\0\360\223"...,
512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size�316, ...})= 0old_mmap(0x4e2d7000, 80040, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)=0x4e2d7000mprotect(0x4e2e6000, 18600, PROT_NONE)= 0old_mmap(0x4e2e7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000)=0x4e2e7000old_mmap(0x4e2e9000, 6312, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0)=0x4e2e9000
close(3) = 0open("/lib/i686/libm.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\0\263G"...,
512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size!5248, ...})= 0old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)=0x40010000old_mmap(0x44478000, 139424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)=0x44478000old_mmap(0x44499000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20000)=0x44499000
close(3) = 0open("/lib/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\0\260\333"...,
512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size908, ...})= 0old_mmap(0x473fd000, 12388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)=0x473fd000old_mmap(0x473ff000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000)=0x473ff000
close(3) = 0open("/lib/i686/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\0p36D4\0"...,
512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size99368, ...})= 0old_mmap(0x4434e000, 1211684, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)=0x4434e000mprotect(0x4446f000, 27940, PROT_NONE)= 0old_mmap(0x44470000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x121000)=0x44470000old_mmap(0x44474000, 7460, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0)=0x44474000close(3) = 0 mprotect(0x44470000, 8192, PROT_READ) = 0 mprotect(0x473ff000, 4096, PROT_READ) = 0 mprotect(0x44499000, 4096, PROT_READ) = 0 mprotect(0x4e2e7000, 4096, PROT_READ) = 0 mprotect(0xb8b000, 4096, PROT_READ) = 0 munmap(0x40000000, 63789) = 0 brk(0) = 0x8071000 brk(0x8092000) = 0x8092000 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) =0x40000000read(3, "000c8000 000f4240 000f4240 00000"..., 4096)= 36close(3) = 0 munmap(0x40000000, 4096) = 0 socket(PF_NETLINK, SOCK_RAW, 0) = 3
setsockopt(3, SOL_SOCKET, SO_SNDBUF, [32768], 4)= 0setsockopt(3, SOL_SOCKET, SO_RCVBUF, [32768], 4)= 0bind(3, {sa_family¯_NETLINK, pid=0, groups 000000}, 12)= 0getsockname(3, {sa_family¯_NETLINK, pidT07, groups 000000}, [12])= 0
time(NULL) = 1148447549open("/usr/lib/tc/q_xcp.so", O_RDONLY)= 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\270\5\0"...,
512) = 512fstat64(4, {st_mode=S_IFREG|0755, st_sizeA92, ...})= 0 old_mmap(NULL, 6908, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4,
0) =0x40000000old_mmap(0x40001000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0)=0x40001000
close(4) = 0
sendto(3, "\24\0\0\0\22\0\1\3>\353sD\0\0\0\0\0\0\0\0", 20, 0, {sa_family¯_NETLINK, pid=0, groups 000000}, 12) = 20 recvmsg(3, {msg_name(12)={sa_family¯_NETLINK, pid=0, groups 000000}, msg_iov(1)=[{"\264\0\0\0\20\0\2\0>\353sD\37\25\0\0\0\0\4\3\1\0\0\0I\0"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 920
recvmsg(3, {msg_name(12)={sa_family¯_NETLINK, pid=0, groups 000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0>\353sD\37\25\0\0\0\0\0\0\1\0\0\0I\0\0"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 20sendmsg(3, {msg_name(12)={sa_family¯_NETLINK, pid=0, groups 000000}, msg_iov(1)=[{"8\0\0\0$\0\5\6?\353sD\0\0\0\0\0\0\0\0\2\0\0\0\0\0\0\0\377"..., 56}], msg_controllen=0, msg_flags=0}, 0) = 56
recvmsg(3, {msg_name(12)={sa_family¯_NETLINK, pid=0, groups 000000}, msg_iov(1)=[{"$\0\0\0\2\0\0\0?\353sD\37\25\0\0\352\377\377\3778\0\0\0"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 36
dup(2) = 4fcntl64(4, F_GETFL)=0x8001(flags
O_WRONLY|O_LARGEFILE)
close(4) = 0
write(2, "RTNETLINK answers: Invalid argum"..., 36RTNETLINK answers:
Quoted 9 lines
Invalid argument
) = 36
close(3) = 0exit_group(2)= ?
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Here is an strace from the machine that it is working on:
execve("/usr/sbin/tc", ["tc", "qdisc", "add", "dev", "ath0", "root", "xcp", "capacity", "50Mbit", "limit", "500"], [/* 40 vars */]) = 0 uname({sys="Linux", node="thorium-ini", ...}) = 0
brk(0) = 0x80765ecaccess("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)open("/etc/ld.so.cache", O_RDONLY) = 3fstat64(3, {st_mode=S_IFREG|0644, st_sizet093, ...}) = 0 mmap2(NULL, 74093, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40017000
close(3) = 0open("/lib/libresolv.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\0000%\0\000"...,
512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_sized568, ...}) = 0 mmap2(NULL, 76020, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4002a000mmap2(0x40039000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) = 0x40039000 mmap2(0x4003b000, 6388, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4003b000
close(3) = 0open("/lib/libm.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\0P4\0\000"...,
512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size3240, ...}) = 0 mmap2(NULL, 135328, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x4003d000mmap2(0x4005d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20) = 0x4005d000
close(3) = 0open("/lib/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\0\340\v\0"...,
512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size440, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4005f000mmap2(NULL, 12392, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40060000mmap2(0x40062000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x40062000
close(3) = 0open("/lib/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\36T\1\000"...,
512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size91488, ...}) = 0 mmap2(NULL, 1138036, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x40064000mmap2(0x40174000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10f) = 0x40174000 mmap2(0x40178000, 7540, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40178000
close(3) = 0
mprotect(0x40174000, 4096, PROT_READ) = 0
mprotect(0x40015000, 4096, PROT_READ) = 0
munmap(0x40017000, 74093) = 0
open("/dev/urandom", O_RDONLY) = 3
read(3, "gq\22\210", 4) = 4
close(3) = 0
brk(0) = 0x80765ec
brk(0x80975ec) = 0x80975ec
brk(0x8098000) = 0x8098000
open("/proc/net/psched", O_RDONLY) = 3fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40017000read(3, "000c8000 000f4240 000f4240 00000"..., 1024) = 36
close(3) = 0 munmap(0x40017000, 4096) = 0 brk(0x8097000) = 0x8097000 socket(PF_NETLINK, SOCK_RAW, 0) = 3
setsockopt(3, SOL_SOCKET, SO_SNDBUF, [32768], 4) = 0setsockopt(3, SOL_SOCKET, SO_RCVBUF, [32768], 4) = 0bind(3, {sa_family¯_NETLINK, pid=0, groups 000000}, 12) = 0getsockname(3, {sa_family¯_NETLINK, pid175, groups 000000}, [12]) = 0
time(NULL) = 1148483135open("/usr/lib/tc/q_xcp.so", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\5\0"...,
512) = 512fstat64(4, {st_mode=S_IFREG|0755, st_sizeD68, ...}) = 0mmap2(NULL, 7136, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0)
= 0x40017000
mmap2(0x40018000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0) = 0x40018000
close(4) = 0
sendto(3, "\24\0\0\0\22\0\1\3@vtD\0\0\0\0\0\0\0\0", 20, 0,
{sa_family¯_NETLINK, pid=0, groups 000000}, 12) = 20
recvmsg(3, {msg_name(12)={sa_family¯_NETLINK, pid=0, groups 000000}, msg_iov(1)=[{"\264\0\0\0\20\0\2\0@vtD_7\0\0\0^\4\3\1\0\0\0I\0\0\0\0\0"...,
16384}], msg_controllen=0, msg_flags=0}, 0) recvmsg(3, {msg_name(12)={sa_family¯_NETLINK, pid=0, groups 000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0@vtD_7\0\0\0\0\0\0\1\0\0\0I\0\0\0\0\0"...,
16384}], msg_controllen=0, msg_flags=0}, 0) sendmsg(3, {msg_name(12)={sa_family¯_NETLINK, pid=0, groups 000000}, msg_iov(1)=[{"8\0\0\0$\0\5\6AvtD\0\0\0\0\0\0\0\0\7\0\0\0\0\0\0\0\377"...,
56}], msg_controllen=0, msg_flags=0}, 0) = 56
recvmsg(3, {msg_name(12)={sa_family¯_NETLINK, pid=0, groups 000000}, msg_iov(1)=[{"$\0\0\0\2\0\0\0AvtD_7\0\0\0\0\0\0008\0\0\0$\0\5\6AvtD"...,
16384}], msg_controllen=0, msg_flags=0}, 0) = 3
close(3) = 0exit_group(0) = ?
Process 14175 detached
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Well it turns out that the problem may very well be the environment, it seems as though i'm getting a hint in dmesg:
[root@emu-5 net]# dmesg
request_module[sch_xcp]: fork failed, errno 1
that occurs after trying to add the qdisc through tc
so it seems to be failing because a fork is failing in the module, which
I am guessing is an environment problem.
Anyone suggestions?
I'll keep trying!
- George
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc