OpenVZ Forum


Home » Mailing lists » Users » fake swap != 0 in VE?
Re: fake swap != 0 in VE? (solved) [message #27272 is a reply to message #27264] Wed, 13 February 2008 13:13 Go to previous messageGo to previous message
Dariush Pietrzak is currently offline  Dariush Pietrzak
Messages: 40
Registered: November 2007
Member
On Wed, 13 Feb 2008, Thomas Sattler wrote:

> >Why not
> >mount --bind fakememinfo /proc/meminfo
> >inside the VE? Would be easiest, but the
> >contents will not match real meminfo
> >because they do not get updated.
> 
> I didn't expect this to work ...
> ... But it does. :-)
> 
> I attached a little script to be run as root
> inside a VE to fake swap. 512MB are default,
> you can change it on the commandline:

 Hmm, I find it strange that such hacks are needed, especially when openvz
already does do some kind of virtualization of /proc/meminfo (if I'm
interpreting this correctly, it sets max-mem from userbeancounters barrier
on VE start, but subsequent online changes are ignored)
-- 
Key fingerprint = 40D0 9FFB 9939 7320 8294  05E0 BCC7 02C4 75CC 50D9
 Total Existance Failure
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: openvz in domu (xen)
Next Topic: Network configuration
Goto Forum:
  


Current Time: Sat Jun 21 18:18:30 GMT 2025

Total time taken to generate the page: 0.11554 seconds