[Users] fake swap != 0 in VE?

Kirill Korotaev dev at parallels.com
Tue Feb 12 03:46:28 EST 2008


the only way I'm aware of is /proc/meminfo
just patch kernel to print something non-zero there always and your application most likely will become happy.

Thomas Sattler wrote:
>> [...] while you can set up a VE such that issuing 'free'
>> will show both RAM and swap- it will be that of the HN.
> 
> That might be all that I need. I can't tell how
> the application checks for swap. Could someone
> give me a hint how an application (like 'free')
> can see any swap?
> 
> I'm quite sure that I do not *need* the swap as
> there is plenty of RAM. But the application com-
> plains if there is no swap to be seen.
> 
> Thomas
> 


More information about the Users mailing list