Kernel 2.6.32-5-openvz-amd64 & CPULIMIT
Hi, I am using the new debian release (squeeze) and the kernel 2.6.32-5-openvz-amd64. When i create a container, it is not possible to limit the number of cpu. I use CPUS et CPULIMIT parameters and with HTOP command i can see all the cpu offered by the hardware. Is there anybody who know if it is possible to limit this ressource ? And which kernel has to be used on Debian to limit it ? thanks. BERTRAND
Re: Kernel 2.6.32-5-openvz-amd64 & CPULIMIT
Try this one: wiki.openvz.org/Download/kernel/rhel6/042test007.1 Recompile it. Should work with Debian 6. It is still testing kernel. If you are going to use new RAM limits with physpages and swappages set - there is a bug: bugzilla.openvz.org/show_bug.cgi?id=1749 and server may stuck at cpu software lock. Anyway - this kernel has a cpu limit future so you will be able to limit your cpu resources.
Hi, I try to compil it using this tutorial : wiki.openvz.org/Compiling_the_OpenVZ_kernel_(the_Debian_way) Everything works fine, but i did'nt patch the kernel. I download the source from squeeze repositories (aptitude install kernel-package linux-source-2.6.32) I use this config wiki.openvz.org/Download/kernel/rhel6/042test008.1 config-2.6.32-042test008.1.x86_64 I download this patch : patch-042test008.1-combined.gz on the same page I extract and make ./patch-042test008.1-combined And ... --- linux-2.6.32/arch/alpha/include/asm/module.h 2009-12-03 04:51:21.000000000 +0100 +++ linux-2.6.32.ovz/arch/alpha/include/asm/module.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,23 +0,0 @@ -#ifndef _ALPHA_MODULE_H -#define _ALPHA_MODULE_H - -struct mod_arch_specific -{ - unsigned int gotsecindex; -}; - -#define Elf_Sym Elf64_Sym -#define Elf_Shdr Elf64_Shdr -#define Elf_Ehdr Elf64_Ehdr -#define Elf_Phdr Elf64_Phdr -#define Elf_Dyn Elf64_Dyn -#define Elf_Rel Elf64_Rel -#define Elf_Rela Elf64_Rela - -#define ARCH_SHF_SMALL SHF_ALPHA_GPREL - -#ifdef MODULE -asm(".section .got,\"aws\",@progbits; .align 3; .previous"); -#endif - -#endif /*_ALPHA_MODULE_H*/ ./patch-042test008.1-combined: line 2: ---: command not found ./patch-042test008.1-combined: line 3: +++: command not found ./patch-042test008.1-combined: line 4: @@: command not found ./patch-042test008.1-combined: line 5: unsigned: command not found ./patch-042test008.1-combined: line 6: syntax error near unexpected token `}' ./patch-042test008.1-combined: line 6: ` };' When i make config, i id not have a line with openvz. So i guest the kernel was not patching. Could you explain how to compil, or give me some informations to fix this problem.