OpenVZ Forum


Home » General » Support » Segmentation fault
Segmentation fault [message #35990] Sun, 10 May 2009 13:18 Go to next message
satimis is currently offline  satimis
Messages: 39
Registered: August 2008
Member
Hi folks,


OpenVZ
guest(VE) - OS, Ubuntu 8.04 (created on template)
Clamav-daemon


On running;

root@vz2:/# /etc/init.d/clamav-daemon start
 * Starting ClamAV daemon clamd                                                  
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
LibClamAV Error: cli_realloc(): Can't re-allocate memory to 19784 bytes.
realloc_problem: Cannot allocate memory
LibClamAV Error: cli_ac_addpatt: Can't realloc ac_pattable
LibClamAV Error: cli_parse_add(): Problem adding signature (1).
LibClamAV Error: Problem parsing database at line 56181
Segmentation fault			[fail]


root@vz2:/# ls /tmp/
clamav-a0d562c1d717bbd7eddc575952c444a4


root@vz2:/# ls /tmp/clamav-a0d562c1d717bbd7eddc575952c444a4/
COPYING  main.db  main.fp  main.hdb  main.info  main.mdb  main.ndb  main.zmd



Please advise how to fix the problem. TIA


B.R.
satimis
Re: Segmentation fault [message #35994 is a reply to message #35990] Sun, 10 May 2009 23:54 Go to previous messageGo to next message
jakob is currently offline  jakob
Messages: 19
Registered: June 2008
Junior Member
Looks like the VE is running out of memory. Give it more!
Re: Segmentation fault [message #35995 is a reply to message #35994] Mon, 11 May 2009 01:18 Go to previous messageGo to next message
satimis is currently offline  satimis
Messages: 39
Registered: August 2008
Member
jarg wrote on Mon, 11 May 2009 07:54

Looks like the VE is running out of memory. Give it more!


Hi jarg,

Thanks for your advice.

This box is for testing purpose running Athlon 64 with 1G RAM on box. There are 4 VEs created but NOT all running simultaneously.


Memory
======

root@vz2:/# free -m
             total       used       free     shared    buffers     cached
Mem:           256        245         10          0          0          0
-/+ buffers/cache:        245         10
Swap:            0          0          0



root@vz2:/# free -t -m
             total       used       free     shared    buffers     cached
Mem:           256        245         10          0          0          0
-/+ buffers/cache:        245         10
Swap:            0          0          0
Total:         256        245         10



root@vz2:/# vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 0  0      0  10624      0      0    0    0     9    11    0 1068  0  0 99  0



The running VE, in problem, is identified as 102. Please advise how to increase the memory on this VE? Whether run;
vzctl set 102 --vmguarpages 371M:372M --save

vzctl set [vpsid] --vmguarpages 371M:372M --save


And how to increase the memory on all VEs simultaneously? TIA


B.R.
satimis
Re: Segmentation fault [message #35998 is a reply to message #35995] Mon, 11 May 2009 14:03 Go to previous messageGo to next message
jakob is currently offline  jakob
Messages: 19
Registered: June 2008
Junior Member
vmguarpages is not actually the problem. It is privvmpages and probably others. I would recommend to set all parameters as in http://wiki.openvz.org/UBC_configuration_examples_table "C".

When you have one working config, copy it, edit it with a text editor, delete the VE unique stuff (hostname, VE ID, IP address, ...) and use
vzctl set XYZ --applyconfig XYZ (or something like that, please see the man page)
to apply the config to other VEs.
Re: Segmentation fault [message #36010 is a reply to message #35998] Tue, 12 May 2009 04:00 Go to previous messageGo to next message
satimis is currently offline  satimis
Messages: 39
Registered: August 2008
Member
Hi jarg,


Thanks for your advice and URL

jarg wrote on Mon, 11 May 2009 22:03

vmguarpages is not actually the problem. It is privvmpages and probably others. I would recommend to set all parameters as in http://wiki.openvz.org/UBC_configuration_examples_table "C".

When you have one working config, copy it, edit it with a text editor, delete the VE unique stuff (hostname, VE ID, IP address, ...)




On host:-

I found the sample file. Copied and renamed it as ve-vps.revise.conf

Changed it as follow;

$ cat /etc/vz/conf/ve-vps.revise.conf
ONBOOT="yes"

# UBC parameters (in form of barrier:limit)
KMEMSIZE="24800000:24800000"    #"11055923:11377049"
LOCKEDPAGES="4096:4096"         #"256:256"
PRIVVMPAGES="262144:292912"     #"65536:69632"
SHMPAGES="131072:131072"        #"21504:21504"
NUMPROC="400:400"               #"240:240"
PHYSPAGES="0:2147483647"
VMGUARPAGES="102400:2147483647"	#"33792:2147483647"
OOMGUARPAGES="102400:214748367"	#"26112:2147483647"
NUMTCPSOCK="500:500"		#"360:360"
NUMFLOCK="200:220"		#"188:206"
NUMPTY="64:64"			#"16:16"
NUMSIGINFO="512:512"		#"256:256"
TCPSNDBUF="5365760:10485760"	#"1720320:2703360"
TCPRCVBUF="5365760:10485760" 	#"1720320:2703360"
OTHERSOCKBUF="1503232:4063232"	#"1126080:2097152"
DGRAMRCVBUF="262144:262144"
NUMOTHERSOCK="500:500"		#"360:360"
DCACHESIZE="4194304:4317184"	#"3409920:3624960"
NUMFILE="8192:8192"		#"9312:9312"
AVNUMPROC="200:200"		#"180:180"
NUMIPTENT="128:128"

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

# CPU fair sheduler parameter
CPUUNITS="1000"


But some of the items I can't find on the table. I'll remove "#...." later. They are for easy reference.


Quote:


and use
vzctl set XYZ --applyconfig XYZ (or something like that, please see the man page)
to apply the config to other VEs.


However I have no idea how to use the file. The guest 102 (VE) is running. Please advise. TIA


Furthermore on creating VE running;
$ sudo vzctl create 102 --ostemplate ubuntu-8.04-i386-minimal --config vps.basic


Where is vps.basic ?


B.R.
satimis
Re: Segmentation fault [message #39749 is a reply to message #35990] Fri, 28 May 2010 11:39 Go to previous messageGo to next message
MrRAV
Messages: 1
Registered: May 2010
Junior Member
Hi.
Have a same problem at debian lenny.
...
root@mailboy:~# clamscan /root
LibClamAV Warning: ***********************************************************
LibClamAV Warning: *** This version of the ClamAV engine is outdated. ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
Segmentation fault

NODE
ovz-1:~# vzctl --version
vzctl version 3.0.22
ovz-1:~# uname -a
Linux ovz-1 2.6.26-2-openvz-amd64 #1 SMP Tue Mar 9 23:10:10 UTC 2010 x86_64 GNU/Linu

VEID settings like http://wiki.openvz.org/UBC_configuration_examples_table "C"

KMEMSIZE="16384000:18022400"
LOCKEDPAGES="4096:4096"
PRIVVMPAGES="262144:292912"
SHMPAGES="131072:131072"
NUMPROC="400:400"
PHYSPAGES="0:9223372036854775807"
VMGUARPAGES="102400:102400"
OOMGUARPAGES="102400:9223372036854775807"
NUMTCPSOCK="500:500"
NUMFLOCK="200:220"
NUMPTY="64:64"
NUMSIGINFO="512:512"
TCPSNDBUF="5365760:5365760"
TCPRCVBUF="5365760:5365760"
OTHERSOCKBUF="33554432:33554432"
DGRAMRCVBUF="1503232:1503232"
NUMOTHERSOCK="500:500"
DCACHESIZE="4194304:4317184"
NUMFILE="8192:8192"
AVNUMPROC="200:200"
NUMIPTENT="128:128"

Re: Segmentation fault [message #39785 is a reply to message #36010] Wed, 02 June 2010 07:58 Go to previous message
madison12 is currently offline  madison12
Messages: 1
Registered: June 2010
Junior Member
Thanks for sharing!!!!!

dedicated linux server hosting
Previous Topic: vzctl command to increase the RAM
Next Topic: HN on private network, VE on public/private network
Goto Forum:
  


Current Time: Fri Oct 18 01:03:23 GMT 2024

Total time taken to generate the page: 0.05320 seconds