OpenVZ Forum


Home » General » Support » kmemsize not found
kmemsize not found [message #12057] Mon, 16 April 2007 14:31 Go to next message
heber is currently offline  heber
Messages: 10
Registered: April 2007
Junior Member
Hello all.

I'm interested in using OpenVZ to virtualize some services of development projects in a production server.

I choose OpenVZ because it has less overhead than others (Xen, Vmware) and OS virtualization is enought for my needs.

I'm using a Ubuntu 6.06, kernel 2.6.15 vanilla with OpenVZ patches patch-025stab014-combined.

The installation (kernel compilation + user tools + creating a ubuntu_minimum vm) was fine (no errors), but I'm getting a strange issue when I execute vzcalc and vzmemcheck, it follows below:

root@TestOpenVZ:~# vzcalc 1001
Error: parameter KMEMSIZE not found

root@TestOpenVZ:~# vzmemcheck
Output values in %
LowMem LowMem RAM MemSwap MemSwap Alloc Alloc Alloc
util commit util util commit util commit limit
Error: parameter kmemsize not found
Error: parameter kmemsize not found
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

I didn't change any parameters, they still are the defaults.

Anyone can give me a clue about this problem? Any idea?

My kernel configuration is:

# OpenVZ
#
CONFIG_VE=y
CONFIG_VE_CALLS=m
CONFIG_VE_SYSFS=y
CONFIG_VE_NETDEV=m
CONFIG_VE_IPTABLES=y
CONFIG_VZ_WDOG=m

# User resources
#
CONFIG_USER_RESOURCE=y
CONFIG_USER_RSS_ACCOUNTING=y
CONFIG_USER_SWAP_ACCOUNTING=y
CONFIG_USER_RESOURCE_PROC=y
CONFIG_UBC_DEBUG=y
CONFIG_UBC_DEBUG_KMEM=y
CONFIG_UBC_KEEP_UNUSED=y
CONFIG_UBC_DEBUG_ITEMS=y
CONFIG_UBC_UNLIMITED=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_PENDING_IRQ=y
CONFIG_X86_SMP=y
CONFIG_X86_HT=y
CONFIG_X86_BIOS_REBOOT=y
CONFIG_X86_TRAMPOLINE=y

# File systems
#
--
CONFIG_SIM_FS=m
CONFIG_VZ_QUOTA=m
CONFIG_VZ_QUOTA_UNLOAD=y

Sorry my poor english.

Thanks a lot

[Updated on: Mon, 16 April 2007 17:12]

Report message to a moderator

Re: kmemsize not found [message #12065 is a reply to message #12057] Tue, 17 April 2007 05:36 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello, seems to be not kernel issue, but vzctl package... What vzctl version do you use? Have you managed to create/start any VEs?

Thank you,
Vasily.
Re: kmemsize not found [message #12066 is a reply to message #12057] Tue, 17 April 2007 05:39 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
BTW, I don't recomend you to use 2.6.15-025stab14.1 kernel: it's too old. It's better to use 2.6.18, or 2.6.18-el based kernels. This is not relayted to your current issue, I just wanted to inform you.

Thank you,
Vasily.
Re: kmemsize not found [message #12082 is a reply to message #12065] Tue, 17 April 2007 12:49 Go to previous messageGo to next message
heber is currently offline  heber
Messages: 10
Registered: April 2007
Junior Member
Hello Vasily,

The vzctl version is 3.0.16-1dso2~sarge0. I've also tried the 3.0.13, which I compiled from sources.

Both gave me the same error.

I've already created the ve:
vzctl create 1001 --ostemplate ubuntu-6.06-i386-minimal

It starts with no problems and works perfectally. At start, I get:

root@TestOpenVZ:~# vzctl start 1001
Starting VE ...
VE is mounted
Adding IP address(es): 10.77.0.111
Setting CPU units: 1000
Set hostname: vz1001
File resolv.conf was modified
VE start in progress...


Bellow is the conf file:

root@TestOpenVZ:~# cat /etc/vz/conf/1001.conf
ONBOOT="no"

# UBC parameters (in form of barrier:limit)
# Primary parameters
AVNUMPROC="40:40"
NUMPROC="65:65"
NUMTCPSOCK="80:80"
NUMOTHERSOCK="80:80"
VMGUARPAGES="6144:2147483647"
# Secondary parameters
KMEMSIZE="2752512:2936012"
TCPSNDBUF="319488:524288"
TCPRCVBUF="319488:524288"
OTHERSOCKBUF="132096:336896"
DGRAMRCVBUF="132096:132096"
OOMGUARPAGES="6144:2147483647"
# Auxiliary parameters
LOCKEDPAGES="32:32"
SHMPAGES="8192:8192"
PRIVVMPAGES="49152:53575"
NUMFILE="2048:2048"
NUMFLOCK="100:110"
NUMPTY="16:16"
NUMSIGINFO="256:256"
DCACHESIZE="1048576:1097728"

PHYSPAGES="0:2147483647"
NUMIPTENT="128:128"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="1048576:1153434"
DISKINODES="200000:220000"
QUOTATIME="0"

# CPU fair sheduler parameter
CPUUNITS="1000"
VE_ROOT="/var/lib/vz/root/$VEID"
VE_PRIVATE="/var/lib/vz/private/$VEID"
OSTEMPLATE="ubuntu-6.06-i386-minimal"
ORIGIN_SAMPLE="vps.basic"
IP_ADDRESS="10.77.0.111"
HOSTNAME="vz1001"
NAMESERVER="a.b.c.d"

Any ideia?

Thanks a lot for the answer.
Re: kmemsize not found [message #12084 is a reply to message #12066] Tue, 17 April 2007 12:59 Go to previous messageGo to next message
heber is currently offline  heber
Messages: 10
Registered: April 2007
Junior Member
Yes, I know.

But I'll have to put OpenVZ in a RHEL 4 production server with RH support, and I'm afraid to lose the support if I change the kernel version to an unofficial.

In this server I'm planning to install the supported kernel which is 2.6.9.x, what is older than 2.6.15, but what could I do?

I'm trying to use 2.6.15 kernel in a test Ubuntu machine, just to test OpenVZ before installing in the production server.

Thanks a lot
Re: kmemsize not found [message #12111 is a reply to message #12057] Tue, 17 April 2007 20:53 Go to previous messageGo to next message
heber is currently offline  heber
Messages: 10
Registered: April 2007
Junior Member
All,

It's working !

I compiled the kernel again changing the following parameters:

FROM:
CONFIG_UBC_KEEP_UNUSED=y
CONFIG_UBC_DEBUG_ITEMS=y
CONFIG_UBC_UNLIMITED=y

TO:
# CONFIG_UBC_KEEP_UNUSED is not set
# CONFIG_UBC_DEBUG_ITEMS is not set
# CONFIG_UBC_UNLIMITED is not set

Anyone can explain to me why vzcalc doesn't work if I change this values?

For what are these parameters used?

Thanks a lot
Re: kmemsize not found [message #12122 is a reply to message #12111] Wed, 18 April 2007 06:15 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

Thank you for investigating the issue, now I can explain you what's the problem.

When CONFIG_UBC_KEEP_UNUSED is on, all VEs (even stopped) still have entries in /proc/user_beancounters. Held field in this file for stopped VEs equals 0 in this case. vzcalc/vzmemcheck use /proc/user_beancounters to get required values and they go crazy if held value is 0! Smile

I consider such situation as a bug, so, please, fill the report in bugzilla.

Thank you once again,
Vasily.
Re: kmemsize not found [message #12267 is a reply to message #12122] Mon, 23 April 2007 17:14 Go to previous messageGo to next message
heber is currently offline  heber
Messages: 10
Registered: April 2007
Junior Member
Hi,

I've already reported as a bug

http://bugzilla.openvz.org/show_bug.cgi?id=548

BTW, where can I find descriptions about all the OpenVZ's kernel config options?

Thanks
Re: kmemsize not found [message #12268 is a reply to message #12267] Mon, 23 April 2007 17:41 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Thanks for filling bug.

Do you mean CONFIG_VE, CONFIG_UBC, etc? Well, the only source of information I know is Kconfig files in kernel source tree: when you do `make menuconfig` you can choose <Help> button for any highlited config option.

Vasily.
Previous Topic: Virtualize PPP and kernel mode PPPoE?
Next Topic: list of packages needed for compling
Goto Forum:
  


Current Time: Wed Sep 11 10:14:33 GMT 2024

Total time taken to generate the page: 0.05656 seconds