OpenVZ Forum


Home » Mailing lists » Devel » [RFC PATCH 3/5] mgmcg VM overcommit interface
Re: [RFC PATCH 3/5] mgmcg VM overcommit interface [message #30925 is a reply to message #30897] Tue, 10 June 2008 17:42 Go to previous messageGo to previous message
Dave Hansen is currently offline  Dave Hansen
Messages: 240
Registered: October 2005
Senior Member
On Tue, 2008-06-10 at 01:33 +0200, Andrea Righi wrote:
> 
> +       cgroup_unlock();
> +
> +       count = sprintf(page, "CommitLimit:  %8lu kB\n"
> +                             "Committed_AS: %8lu kB\n",
> +                             K(allowed), K(committed));
> +       ret = simple_read_from_buffer(userbuf, nbytes, ppos, page, count);
> +out:
> +       free_page((unsigned long)page);
> +       return ret;
> +}

I know you're trying to make this look like meminfo, but it does butcher
the sysfs rules a bit.  How about breaking it out into a couple of
files?

-- Dave

_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Previous Topic: [RFC PATCH 5/5] refresh VM committed space after a task migration
Next Topic: [PATCH 2/2] cryo: minimal test program
Goto Forum:
  


Current Time: Sun Aug 03 05:26:57 GMT 2025

Total time taken to generate the page: 1.44738 seconds