[Devel] Re: [ckrm-tech] [PATCH 00/10] Containers(V10): Generic Process Containers

2007-06-06 Thread Paul Jackson
> I suppose as a cleaner alternative we could > add a container_subsys->inherit_defaults() handler, to be called at > container_clone(), and for cpusets this would set cpus and mems to > the parent values - sibling exclusive values. If that comes to nothing, > then the attach_task() is still refu

[Devel] Re: [PATCH 00/10] Containers(V10): Generic Process Containers

2007-06-06 Thread Serge E. Hallyn
Quoting Paul Jackson ([EMAIL PROTECTED]): > > > I wasn't paying close enough attention to understand why you couldn't > > > do it in two steps - make the container, and then populate it with > > > resources. > > > > Sorry, please clarify - are you saying that now you do understand, or > > that I s

[Devel] Re: [PATCH 00/10] Containers(V10): Generic Process Containers

2007-06-06 Thread Paul Jackson
> > I wasn't paying close enough attention to understand why you couldn't > > do it in two steps - make the container, and then populate it with > > resources. > > Sorry, please clarify - are you saying that now you do understand, or > that I should explain? Could you explain -- I still don't und

[Devel] Re: [PATCH 00/10] Containers(V10): Generic Process Containers

2007-06-06 Thread Serge E. Hallyn
Quoting Paul Jackson ([EMAIL PROTECTED]): > > Would it then make sense to just > > default to (parent_set - sibling_exclusive_set) for a new sibling's > > value? > > Which could well be empty, which in turn puts one back in the position > of dealing with a newborn cpuset that is empty (of cpus or

Re: [Devel] Re: [PATCH] Virtual ethernet tunnel

2007-06-06 Thread David Miller
From: Daniel Lezcano <[EMAIL PROTECTED]> Date: Wed, 06 Jun 2007 22:38:11 +0200 > Perhaps, a name like "epipe" or "npipe", which reflects what does the > device, is more appropriate ? 'npipe' (Network PIPE) or 'epipe' (Ethernet PIPE) are fine with me. _

Re: [Devel] Re: [PATCH] Virtual ethernet tunnel

2007-06-06 Thread Daniel Lezcano
David Miller wrote: From: Pavel Emelianov <[EMAIL PROTECTED]> Date: Wed, 06 Jun 2007 19:11:38 +0400 Veth stands for Virtual ETHernet. It is a simple tunnel driver that works at the link layer and looks like a pair of ethernet devices interconnected with each other. I would suggest cho

[Devel] Re: [PATCH] Virtual ethernet tunnel

2007-06-06 Thread David Miller
From: Pavel Emelianov <[EMAIL PROTECTED]> Date: Wed, 06 Jun 2007 19:11:38 +0400 > Veth stands for Virtual ETHernet. It is a simple tunnel driver > that works at the link layer and looks like a pair of ethernet > devices interconnected with each other. I would suggest choosing a different name. '

[Devel] Re: [PATCH] Virtual ethernet tunnel

2007-06-06 Thread Stephen Hemminger
On Wed, 06 Jun 2007 19:11:38 +0400 Pavel Emelianov <[EMAIL PROTECTED]> wrote: > Veth stands for Virtual ETHernet. It is a simple tunnel driver > that works at the link layer and looks like a pair of ethernet > devices interconnected with each other. > > Mainly it allows to communicate between net

[Devel] Re: [PATCH] Virtual ethernet tunnel

2007-06-06 Thread Patrick McHardy
Pavel Emelianov wrote: > +MODULE_DESCRIPTION("Virtual Ethernet Tunnel"); > +MODULE_LICENSE("GPL v2"); This seems to be missing MODULE_ALIAS_RTNL_LINK("veth"); ___ Containers mailing list [EMAIL PROTECTED] https://lists.linux-foundation.org/mailman/listi

[Devel] Re: [PATCH] Virtual ethernet tunnel

2007-06-06 Thread Patrick McHardy
Pavel Emelianov wrote: > Veth stands for Virtual ETHernet. It is a simple tunnel driver > that works at the link layer and looks like a pair of ethernet > devices interconnected with each other. > > Mainly it allows to communicate between network namespaces but > it can be used as is as well. > >

[Devel] Re: checkpointing and restoring processes

2007-06-06 Thread Dave Hansen
On Wed, 2007-06-06 at 13:37 +0200, Mark Pflueger wrote: > hi everyone! > > i'm not subscribed to the list, so if you care to flame because of my noob > question, just do it to the list, otherwise please cc me. > > i'm trying to write a checkpoint/restore module for processes and so have > a bas

[Devel] Re: [patch 1/5][RFC - ipv4/udp checkpoint/restart] : add lookup for unhashed inode

2007-06-06 Thread Daniel Lezcano
Serge E. Hallyn wrote: Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): The socket relies on the sockfs. In some cases, the socket are orphans and it is not possible to access them via a file descriptor, this is the case for example for timewait sockets. Hopefully, an inode is still usable to s

[Devel] Re: [PATCH] Module for ip utility to support veth device

2007-06-06 Thread Patrick McHardy
Pavel Emelianov wrote: > diff --git a/ip/iplink.c b/ip/iplink.c > index 5170419..6975990 100644 > --- a/ip/iplink.c > +++ b/ip/iplink.c > @@ -287,7 +287,7 @@ static int iplink_modify(int cmd, unsign >strlen(type)); > > lu = get_link_type(type); > -

[Devel] [PATCH] Module for ip utility to support veth device

2007-06-06 Thread Pavel Emelianov
The usage is # ip link add [name] type veth [peer ] [mac ] [peer_mac ] The Makefile is maybe not as beautiful as it could be. It is to be discussed. One thing I noticed during testing is the following. When launching this with link_veth.so module and not specifying any module specific parameters,

[Devel] [PATCH] Virtual ethernet tunnel

2007-06-06 Thread Pavel Emelianov
Veth stands for Virtual ETHernet. It is a simple tunnel driver that works at the link layer and looks like a pair of ethernet devices interconnected with each other. Mainly it allows to communicate between network namespaces but it can be used as is as well. Eric recently sent a similar driver ca

[Devel] Re: checkpointing and restoring processes

2007-06-06 Thread Serge E. Hallyn
Quoting Cedric Le Goater ([EMAIL PROTECTED]): > Mark Pflueger wrote: > > hi everyone! > > > > i'm not subscribed to the list, so if you care to flame because of my noob > > question, just do it to the list, otherwise please cc me. > > you should subscribe to [EMAIL PROTECTED] and send your ideas

[Devel] Re: [patch 1/5][RFC - ipv4/udp checkpoint/restart] : add lookup for unhashed inode

2007-06-06 Thread Serge E. Hallyn
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): > The socket relies on the sockfs. In some cases, the socket are orphans and > it is not possible to access them via a file descriptor, this is the case for > example for timewait sockets. Hopefully, an inode is still usable to specify > a socket. This

[Devel] Re: breakfast at ols?

2007-06-06 Thread Daniel Lezcano
Cedric Le Goater wrote: Serge E. Hallyn wrote: Last year we all met for breakfast at OLS. Now we've all pretty much all already met so maybe it's less exciting, but do people (who will be at OLS) care to meet for breakfast on the thursday or friday? OK for me, if i can skip the pancak

[Devel] Re: breakfast at ols?

2007-06-06 Thread Cedric Le Goater
Serge E. Hallyn wrote: > Last year we all met for breakfast at OLS. Now we've all pretty much > all already met so maybe it's less exciting, but do people (who will be > at OLS) care to meet for breakfast on the thursday or friday? OK for me, if i can skip the pancakes with tons of cream and jam.

[Devel] Re: checkpointing and restoring processes

2007-06-06 Thread Cedric Le Goater
Mark Pflueger wrote: > hi everyone! > > i'm not subscribed to the list, so if you care to flame because of my noob > question, just do it to the list, otherwise please cc me. you should subscribe to [EMAIL PROTECTED] and send your ideas on that list. There's a BOF on that topic at OLS if you can

[Devel] [patch 5/5][RFC - ipv4/udp checkpoint/restart] : c/r the udp part of the socket

2007-06-06 Thread dlezcano
From: Daniel Lezcano <[EMAIL PROTECTED]> This patch defines a set of netlink attributes to store/retrieve udp option and endpoints. The logic is to extend the netlink message attribute to take into account these new values. The ops of struct sock is extended with the dump/restore callbacks, so wh

[Devel] [patch 4/5][RFC - ipv4/udp checkpoint/restart] : c/r the inet options of the socket

2007-06-06 Thread dlezcano
From: Daniel Lezcano <[EMAIL PROTECTED]> This patch defines a set of netlink attributes to store/retrieve inet options. The logic is to extend the netlink message attribute to take into account these new values. The multicast list is browsed first and the netlink nested attribute is filled in t

[Devel] [patch 3/5][RFC - ipv4/udp checkpoint/restart] : c/r the socket information and options

2007-06-06 Thread dlezcano
From: Daniel Lezcano <[EMAIL PROTECTED]> This patch defines a set of netlink attributes to store/retrieve socket options. * At dump time, a netlink message specify the inode of the socket to be checkpointed. The socket is retrieved with the inode number. A new netlink message is built in

[Devel] [patch 2/5][RFC - ipv4/udp checkpoint/restart] : provide compilation option and genetlink framework

2007-06-06 Thread dlezcano
From: Daniel Lezcano <[EMAIL PROTECTED]> This patchset provide the AF_INET C/R option in the makefile and a generic netlink framework for passing the socket messages. It seems that we are encouraged to use netlink instead of the /proc, /sysfs, ioctls: http://kerneltrap.org/node/6637 I found th

[Devel] [patch 1/5][RFC - ipv4/udp checkpoint/restart] : add lookup for unhashed inode

2007-06-06 Thread dlezcano
The socket relies on the sockfs. In some cases, the socket are orphans and it is not possible to access them via a file descriptor, this is the case for example for timewait sockets. Hopefully, an inode is still usable to specify a socket. This one can be retrieved from /proc/net/tcp for orphan soc

[Devel] [patch 0/5][RFC - ipv4/udp checkpoint/restart] dumping/restoring the IPV4/UDP sockets

2007-06-06 Thread dlezcano
Hi, I would like to resurect the discussion we had concerning the socket checkpoint/restart. I began to look how to checkpoint them. I thought the following: The socket can be checkpointed one by one from userspace. That will allow to provide a mechanism to application which wants to checkpoi

[Devel] Per container statistics (containerstats)

2007-06-06 Thread Balbir Singh
Hi, Andrew/Paul, Here's the latest version of containerstats ported to v10. Could you please consider it for inclusion Changelog 1. Instead of parsing long container path's use the dentry to match the container for which stats are required. The user space application opens the container di

Re: [Devel] breakfast at ols?

2007-06-06 Thread Kirill Korotaev
My apologies, but I won't be able to visit OLS this year :/ I think Kirill Kolyshkin and Denis Lunev will be glad to meet you again! Hope Pavel Emelianov will be able to join as well. Thanks, Kirill Serge E. Hallyn wrote: > Last year we all met for breakfast at OLS. Now we've all pretty much >

[Devel] Re: Pid namespaces approaches testing results

2007-06-06 Thread Pavel Emelianov
Cedric Le Goater wrote: >> The flat model has many optimization ways in comparison with the multilevel >> one. Like we can cache the pid value on structs and some other. >> >> Moreover having generic level nesting sounds reasonable. Having single level >> nesting - too as all the namespace we have