<div dir="ltr"><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/16 Natale Patriciello <span dir="ltr"><<a href="mailto:natale.patriciello@gmail.com" target="_blank">natale.patriciello@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 16/04/13 at 06:45pm, Zhu Yanhai wrote:<br>
> I think the 'tcp friends' feature in the latest upstream kernel can do the<br>
> same thing with it. See <a href="http://lwn.net/Articles/511254/" target="_blank">http://lwn.net/Articles/511254/</a>.<br>
><br>
<br>
</div>Actually, I'm focused to lower layers (in particular ethernet layer), so<br>
any improvements to TCP doesn't fit well into my case study. Thank you<br>
anyway, I'll will add it to the "must see" things.<br>
<br>
Regarding netmap, its kernel module creates a character device (/dev/netmap), which I<br>
want to make accessible into lxc containers as first step to evaluate<br>
performance. I've setup config file adding these lines:<br>
<br>
lxc.cgroup.devices.allow = c 10:57 rwm<br>
<br>
because I have<br>
<br>
crw------- 1 root root 10, 57 16 apr 11.23 /dev/netmap<br>
<br>
but any mknod inside the container fail with an "operation not<br></blockquote><div><br></div><div style>It should be ok, did you restart the container after config file change? Or maybe it's because you drop CAP_SYS_MODULE or CAP_MKNOD in the config file by mistake?</div>
<div style><br></div><div style>--</div><div style>-zyh</div><div style><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
permitted". For example:<br>
<br>
mknod /dev/netmap c 10 57<br>
mknod: "/dev/netmap": Operation not permitted<br>
<br>
I get this behavior on ubuntu hosts, with 3.5.0, but on archlinux hosts<br>
as well, with 3.8.5 kernel version.<br>
<br>
There's something I'm missing? Maybe on the netmap side (from its<br>
sources, I see that it create the device with a call to misc_register<br>
[1]) ?<br>
<br>
Basically, I need a "pass-through" to reach /dev/netmap on the host side<br>
from the containers.<br>
<br>
Thank you in advance<br>
<br>
[1] <a href="http://lxr.linux.no/#linux+v3.8.7/include/linux/miscdevice.h#L63" target="_blank">http://lxr.linux.no/#linux+v3.8.7/include/linux/miscdevice.h#L63</a><br>
</blockquote></div><br></div></div>