[Devel] Re: [RFC][-mm] [0/2] Basic stats for cgroups V2

2008-04-08 Thread Paul Menage
On Sat, Apr 5, 2008 at 11:09 AM, Balaji Rao [EMAIL PROTECTED] wrote: V1-V2 - Fixed a possible race in cpu_cgroup_read_stat. Thank you Paul for pointing this out. - A few other naming changes. This patchset is a first step towards implementing stats for cgroup subsystems. Only a few

[Devel] Re: Loadable cgroup subsystems

2008-04-08 Thread Paul Menage
On Tue, Apr 8, 2008 at 2:40 AM, Nikanth Karthikesan [EMAIL PROTECTED] wrote: I'd rather not add support for this without a strong case of a subsystem that really needs to be dynamically loaded. There were some band-width control patches based on cfq + cgroups, which I guess will

[Devel] Re: [RFC][-mm] [0/2] Basic stats for cgroups V2

2008-04-08 Thread Balaji Rao
On Tuesday 08 April 2008 01:06:17 pm Paul Menage wrote: One of the important API choices would be whether the stats API was fixed in header files shared with userspace, or whether it would be possible for stats to be added and dynamically discovered/used by userspace without needing fixed

[Devel] [PATCH 01/12] proc: switch /proc/driver/ray_cs/ray_cs to seq_file interface

2008-04-08 Thread Alexey Dobriyan
Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- drivers/net/wireless/ray_cs.c | 73 -- 1 file changed, 42 insertions(+), 31 deletions(-) --- a/drivers/net/wireless/ray_cs.c +++ b/drivers/net/wireless/ray_cs.c @@ -34,6 +34,7 @@ #include

[Devel] [PATCH 02/12] proc: switch /proc/driver/radio-typhoon to seq_file interface

2008-04-08 Thread Alexey Dobriyan
Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- drivers/media/radio/radio-typhoon.c | 40 1 file changed, 23 insertions(+), 17 deletions(-) --- a/drivers/media/radio/radio-typhoon.c +++ b/drivers/media/radio/radio-typhoon.c @@ -35,6 +35,7 @@ #include

[Devel] [PATCH 03/12] proc: switch /proc/bus/zorro/devices to seq_file interface

2008-04-08 Thread Alexey Dobriyan
Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- drivers/zorro/proc.c | 72 +-- 1 file changed, 47 insertions(+), 25 deletions(-) --- a/drivers/zorro/proc.c +++ b/drivers/zorro/proc.c @@ -13,6 +13,7 @@ #include linux/types.h #include

[Devel] Re: [RFC][-mm] [0/2] Basic stats for cgroups V2

2008-04-08 Thread Paul Menage
On Tue, Apr 8, 2008 at 6:49 AM, Balaji Rao [EMAIL PROTECTED] wrote: We are also looking at a generic framework in cgroups that would delegate the job of handling statistics to the cgroup framework itself. This would avoid code duplication across various controllers. Yes, avoiding code

[Devel] [PATCH 04/12] proc: switch /proc/apm to seq_file interface

2008-04-08 Thread Alexey Dobriyan
Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- careful, my cross-compile farm is currently defunct drivers/char/apm-emulation.c | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) --- a/drivers/char/apm-emulation.c +++ b/drivers/char/apm-emulation.c @@ -14,6

[Devel] Re: [RFC][-mm] [0/2] Basic stats for cgroups V2

2008-04-08 Thread Paul Menage
On Tue, Apr 8, 2008 at 3:30 AM, Balbir Singh [EMAIL PROTECTED] wrote: Thoughts? I like the overall approach, do you have a prototype implementation? No, nothing yet. Well, I posted a version of the API description file a couple of months ago but people didn't seem to like that. Paul

[Devel] [PATCH 05/12] proc: remove /proc/mac_iop

2008-04-08 Thread Alexey Dobriyan
Entry creation was commented for a long time and right now it stands on the way of -get_info removal, so unless nobody objects... Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- arch/m68k/mac/iop.c | 85 1 file changed, 85 deletions(-)

[Devel] [PATCH 06/12] proc: switch /proc/bus/ecard/devices to seq_file interface

2008-04-08 Thread Alexey Dobriyan
Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- arch/arm/kernel/ecard.c | 54 +++- 1 file changed, 26 insertions(+), 28 deletions(-) --- a/arch/arm/kernel/ecard.c +++ b/arch/arm/kernel/ecard.c @@ -37,6 +37,7 @@ #include linux/mm.h #include

[Devel] [PATCH 07/12] proc: switch /proc/excite/unit_id to seq_file interface

2008-04-08 Thread Alexey Dobriyan
Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- arch/mips/basler/excite/excite_procfs.c | 28 1 file changed, 20 insertions(+), 8 deletions(-) --- a/arch/mips/basler/excite/excite_procfs.c +++ b/arch/mips/basler/excite/excite_procfs.c @@ -18,8 +18,9 @@ *

[Devel] [PATCH 10/12] proc: switch /proc/irda/irnet to seq_file interface

2008-04-08 Thread Alexey Dobriyan
Probably interface misuse, because of the way iterating over hashbin is done. However! Printing of socket number (IrNET socket %d - , i++) made conversion to proper -start/-next difficult enough to do blindly without hardware. Said that, please apply. Remove useless comment while I am it.

[Devel] [PATCH 12/12] proc: remove -get_info infrastructure

2008-04-08 Thread Alexey Dobriyan
Now that last dozen or so users of -get_info were removed, ditch it too. Everyone sane shouldd have switched to seq_file interface long ago. P.S.: Co-existing 3 interfaces (-get_info/-read_proc/-proc_fops) for proc is long-standing crap, BTW, thus a) put

[Devel] [PATCH 09/12] proc: convert /proc/bus/nubus to seq_file interface

2008-04-08 Thread Alexey Dobriyan
Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- drivers/nubus/proc.c | 42 -- 1 file changed, 20 insertions(+), 22 deletions(-) --- a/drivers/nubus/proc.c +++ b/drivers/nubus/proc.c @@ -21,6 +21,7 @@ #include linux/kernel.h #include linux/nubus.h

[Devel] [PATCH 11/12] proc: switch /proc/scsi/device_info to seq_file interface

2008-04-08 Thread Alexey Dobriyan
Note 1: 0644 should be used, but root bypasses permissions, so writing to /proc/scsi/device_info still works. Note 2: looks like scsi_dev_info_list is unprotected Note 3: probably make proc whine about unwriteable but with -write hook entries. Probably. Signed-off-by: Alexey

[Devel] TCP/IP Client/Server Kernel Module

2008-04-08 Thread Diego Leonel Cadette Dutra
I'm writing a tcp client/server application in the OpenVZ Kernel. Both running inside kernel as modules, but the tcp connection didnt's tabilished. I've trace the problem to the functions sock-ops-connect (at the client) and sock-ops-accept ( at the server) For some reason the accept function

[Devel] openvz: pull request

2008-04-08 Thread Alexey Dobriyan
Ben, please pull from git://git.openvz.org/pub/ubuntu-hardy-openvz openvz to receive the following updates: Alexey Dobriyan (3): openvz: revert AA changes to d_path() and getcwd(2) openvz: sync 2.6.24-ovz002 = 2.6.24-ovz004 openvz: switch to CONFIG_VZ_FAIRSCHED group

[Devel] Re: [RFC][-mm] [0/2] Basic stats for cgroups V2

2008-04-08 Thread Balaji Rao
On Tuesday 08 April 2008 08:22:16 pm Paul Menage wrote: On Tue, Apr 8, 2008 at 6:49 AM, Balaji Rao [EMAIL PROTECTED] wrote: We are also looking at a generic framework in cgroups that would delegate the job of handling statistics to the cgroup framework itself. This would avoid code

[Devel] [RFC] Control Groups Roadmap ideas

2008-04-08 Thread Paul Menage
This is a list of some of the sub-projects that I'm planning for Control Groups, or that I know others are planning on or working on. Any comments or suggestions are welcome. 1) Stateless subsystems - This was motivated by the recent freezer subsystem proposal, which included a facility for

[Devel] [RFC][PATCH 0/7] Clone PTS namespace

2008-04-08 Thread sukadev
Devpts namespace patchset In continuation of the implementation of containers in mainline, we need to support multiple PTY namespaces so that the PTY index (ie the tty names) in one container is independent of the PTY indices of other containers. For instance this would allow each container to

[Devel] [RFC][PATCH 3/7]: Enable multiple mounts of /dev/pts

2008-04-08 Thread sukadev
From: Sukadev Bhattiprolu [EMAIL PROTECTED] Subject:[RFC][PATCH 3/7]: Enable multiple mounts of /dev/pts To support multiple PTY namespaces, we should be allow multiple mounts of /dev/pts, once within each PTY namespace. This patch removes the get_sb_single() in devpts_get_sb() and uses test

[Devel] [RFC][PATCH 2/7]: Factor out PTY index allocation

2008-04-08 Thread sukadev
From: Sukadev Bhattiprolu [EMAIL PROTECTED] Subject: [RFC][PATCH 2/7]: Factor out PTY index allocation Factor out the code used to allocate/free a pts index into new interfaces, devpts_new_index() and devpts_kill_index(). This localizes the external data structures used in managing the pts

[Devel] [RFC][PATCH 4/7]: Allow mknod of ptmx and tty in devpts

2008-04-08 Thread sukadev
From: Sukadev Bhattiprolu [EMAIL PROTECTED] Subject: [RFC][PATCH 4/7]: Allow mknod of ptmx and tty in devpts We want to allow administrators to access PTYs in descendant pts-namespaces, for instance echo foo /vserver/vserver1/dev/pts/0. To enable such access we must hold a reference to the

[Devel] [RFC][PATCH 5/7]: Implement get_pts_ns() and put_pts_ns()

2008-04-08 Thread sukadev
From: Sukadev Bhattiprolu [EMAIL PROTECTED] Subject: [RFC][PATCH 5/7]: Implement get_pts_ns() and put_pts_ns() Implement get_pts_ns() and put_pts_ns() interfaces. Signed-off-by: Sukadev Bhattiprolu [EMAIL PROTECTED] --- include/linux/devpts_fs.h | 21 - 1 file changed, 20

[Devel] [RFC][PATCH 6/7]: Determine pts_ns from a pty's inode

2008-04-08 Thread sukadev
From: Sukadev Bhattiprolu [EMAIL PROTECTED] Subject: [RFC][PATCH 6/7]: Determine pts_ns from a pty's inode. The devpts interfaces currently operate on a specific pts namespace which they get from the 'current' task. With implementation of containers and cloning of PTS namespaces, we want to be

[Devel] [PATCH] Add try_to_remove_exclusive_swap_page stub for CONFIG_SWAP=N

2008-04-08 Thread Florian Westphal
mm/memory.c: In function 'do_swap_page': mm/memory.c:2194: error: implicit declaration of function 'try_to_remove_exclusive_swap_page' --- patch applies on top of c77d67e020b65c69f9133850e298b7c3d02e 'UBC: fix preempt_enable() placement in dcache accounting' in linux-2.6.24-openvz. diff

[Devel] [RFC][PATCH] CGroups: Include hierarchy ids in /proc/pid/cgroup

2008-04-08 Thread Paul Menage
[ The RFC associated with this patch is whether there's a better way to export such information in a way that's simultaneously extensible, human-readable and machine-parsable ] CGroups: Include hierarchy ids in /proc/pid/cgroup This patch extends the /proc/pid/cgroup file to include the

[Devel] Re: [RFC][PATCH 0/7] Clone PTS namespace

2008-04-08 Thread H. Peter Anvin
[EMAIL PROTECTED] wrote: Devpts namespace patchset In continuation of the implementation of containers in mainline, we need to support multiple PTY namespaces so that the PTY index (ie the tty names) in one container is independent of the PTY indices of other containers. For instance this

[Devel] Re: [RFC] Control Groups Roadmap ideas

2008-04-08 Thread Li Zefan
Paul Menage wrote: 3) Subsystem dependencies - This would be a fairly simple change, essentially allowing one subsystem to require that it only be mounted on a hierarchy when some other subsystem was also present. The implementation would probably be a callback that allows a subsystem