Home » Mailing lists » Devel » [RFC][PATCH 1/5] Virtualization/containers: startup
Re: [RFC][PATCH 1/5] Virtualization/containers: startup [message #1281 is a reply to message #1251] |
Sun, 05 February 2006 15:05   |
dev
Messages: 1693 Registered: September 2005 Location: Moscow
|
Senior Member |

|
|
> I just did a global s/vps/container/ and it looks pretty reasonable, at
> least from my point of view.
>
> Couple of minor naming nitpick questions, though. Is vps/container_info
> really what we want to call it? It seems to me to be the basis for a
> real "container", without the _info part.
Can be ommited.
> "tsk->owner_container" That makes it sound like a pointer to the "task
> owner's container". How about "owning_container"? The "container
> owning this task". Or, maybe just "container"?
This is why I don't like "container" name.
Please, also note, in OpenVZ we have 2 pointers on task_struct:
One is owner of a task (owner_env), 2nd is a current context (exec_env).
exec_env pointer is used to avoid adding of additional argument to all
the functions where current context is required.
Linus, does such approach makes sense to you or you prefer us to add
additional args to functions where container pointer is needed? This
looks undersiable for embedded guys and increases stack usage/code size
when virtualization is off, which doesn't look good for me.
> Any particular reason for the "u32 id" in the vps_info struct as opposed
> to one of the more generic types? Do we want to abstract this one in
> the same way we do pid_t?
VPS ID is passed to/from user space APIs and when you have a cluster
with different archs and VPSs it is better to have something in common
for managing this.
> The "host" in "host_container_info" doesn't mean much to me. Though, I
> guess it has some context in the UML space. Would "init_container_info"
> or "root_container_info" be more descriptive?
init_container?
(Again, this is why container doesn't sound for me :) )
> Lastly, is this a place for krefs? I don't see a real need for a
> destructor yet, but the idea is fresh in my mind.
I don't see much need for krefs, do you?
In OpenVZ we have 2-level refcounting (mentioned recently by Linus as in
mm). Process counter is used to decide when container should
collapse/cleanuped and real refcounter is used to free the structures
which can be referenced from somewhere else.
Also there is some probability that use of krefs will result in sysfs :)))
> How does the attached patch look?
I will resend all 5 patches tomorrow. And maybe more.
Kirill
|
|
|
 |
|
[RFC][PATCH 1/5] Virtualization/containers: startup
|
 |
|
[RFC][PATCH 2/5] Virtualization/containers: UIDs
By: dev on Fri, 03 February 2006 17:01
|
 |
|
[RFC][PATCH 3/5] Virtualization/containers: UTSNAME
By: dev on Fri, 03 February 2006 17:04
|
 |
|
Re: [RFC][PATCH 3/5] Virtualization/containers: UTSNAME
By: ebiederm on Mon, 06 February 2006 08:21
|
 |
|
Re: [RFC][PATCH 3/5] Virtualization/containers: UTSNAME
By: dev on Mon, 06 February 2006 08:51
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: dev on Fri, 03 February 2006 17:22
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
|
 |
|
Summary: PID virtualization , Containers, Migration
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: dev on Sun, 05 February 2006 14:52
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: ebiederm on Mon, 06 February 2006 08:39
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: dev on Mon, 06 February 2006 08:58
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: ebiederm on Mon, 06 February 2006 09:19
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: ebiederm on Mon, 06 February 2006 18:37
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: dev on Mon, 06 February 2006 19:30
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: ebiederm on Tue, 07 February 2006 01:57
|
 |
|
swsusp done by migration (was Re: [RFC][PATCH 1/5] Virtualization/containers: startup)
|
 |
|
Re: swsusp done by migration (was Re: [RFC][PATCH 1/5] Virtualization/containers: startup)
By: ebiederm on Thu, 09 February 2006 18:20
|
 |
|
Re: swsusp done by migration (was Re: [RFC][PATCH 1/5] Virtualization/containers: startup)
|
 |
|
Re: swsusp done by migration (was Re: [RFC][PATCH 1/5] Virtualization/containers: startup)
|
 |
|
Re: Re: swsusp done by migration (was Re: [RFC][PATCH 1/5] Virtualization/containers: startup)
By: vaverin on Fri, 10 February 2006 06:23
|
 |
|
Re: Re: swsusp done by migration (was Re: [RFC][PATCH 1/5] Virtualization/containers: startup)
|
 |
|
Re: Re: swsusp done by migration (was Re: [RFC][PATCH 1/5] Virtualization/containers: startup)
By: vaverin on Sat, 11 February 2006 17:29
|
 |
|
Re: swsusp done by migration (was Re: [RFC][PATCH 1/5] Virtualization/containers: startup)
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: Greg KH on Fri, 03 February 2006 20:19
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: dev on Sun, 05 February 2006 15:10
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: dev on Sun, 05 February 2006 15:05
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: dev on Mon, 06 February 2006 16:50
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: dev on Mon, 06 February 2006 17:19
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: dev on Tue, 07 February 2006 12:19
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: dev on Mon, 20 February 2006 11:54
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: dev on Sun, 05 February 2006 15:11
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: dev on Mon, 06 February 2006 09:06
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: dev on Tue, 07 February 2006 12:25
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
|
 |
|
Re: Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: dev on Mon, 06 February 2006 09:01
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: ebiederm on Mon, 06 February 2006 08:31
|
 |
|
Re: [RFC][PATCH 1/5] Virtualization/containers: startup
By: ebiederm on Fri, 10 February 2006 06:01
|
Goto Forum:
Current Time: Sat Aug 09 17:18:11 GMT 2025
Total time taken to generate the page: 0.46646 seconds
|