OpenVZ Forum


Home » Mailing lists » Users » My question with my VPS
My question with my VPS [message #9033] Thu, 14 December 2006 02:07 Go to next message
xiao liu is currently offline  xiao liu
Messages: 2
Registered: December 2006
Junior Member
Hello. I have a question with my VPS. I create a fedora-core-4-i386-default
VPS with OpenVZ. When I do a ping-pong test, I found my VPS only can create
16 thread at most. So I view my VID.conf and edit PRIVVMPAGES="49152:53575"
to PRIVVMPAGES="991520:1035750", then I found I still only can create 45
thread. But I think there is enough mem in my computer...
Attached my ping-pong test sourse code

Could anyone help me? Thanks!

____________________________________________________________ _____
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/ 01/
  • Attachment: pp32.c
    (Size: 9.97KB, Downloaded 327 times)
Re: My question with my VPS [message #9034 is a reply to message #9033] Thu, 14 December 2006 05:41 Go to previous messageGo to next message
Andrey Mirkin is currently offline  Andrey Mirkin
Messages: 193
Registered: May 2006
Senior Member
Hello.

Can you please look into /proc/user_beancounters for failcounters for your VE.
I think the problem is in numproc value in you case.
BTW, if you edit config file manually then you need to restart your VE to
apply changes.

Thanks,
Andrey

On Thursday 14 December 2006 05:07 xiao liu wrote:
> Hello. I have a question with my VPS. I create a fedora-core-4-i386-default
> VPS with OpenVZ. When I do a ping-pong test, I found my VPS only can create
> 16 thread at most. So I view my VID.conf and edit PRIVVMPAGES="49152:53575"
> to PRIVVMPAGES="991520:1035750", then I found I still only can create 45
> thread. But I think there is enough mem in my computer...
> Attached my ping-pong test sourse code
>
> Could anyone help me? Thanks!
>
> ____________________________________________________________ _____
> Express yourself instantly with MSN Messenger! Download today it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/ 01/
Re: My question with my VPS [message #9038 is a reply to message #9034] Thu, 14 December 2006 08:00 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

And if you set new parameters via 'vzctl set' you do not have to restart
your VE.

This wiki page should help you: http://wiki.openvz.org/Resource_shortage

Andrey Mirkin wrote:
> Hello.
>
> Can you please look into /proc/user_beancounters for failcounters for your VE.
> I think the problem is in numproc value in you case.
> BTW, if you edit config file manually then you need to restart your VE to
> apply changes.
>
> Thanks,
> Andrey
>
> On Thursday 14 December 2006 05:07 xiao liu wrote:
>
>> Hello. I have a question with my VPS. I create a fedora-core-4-i386-default
>> VPS with OpenVZ. When I do a ping-pong test, I found my VPS only can create
>> 16 thread at most. So I view my VID.conf and edit PRIVVMPAGES="49152:53575"
>> to PRIVVMPAGES="991520:1035750", then I found I still only can create 45
>> thread. But I think there is enough mem in my computer...
>> Attached my ping-pong test sourse code
>>
>> Could anyone help me? Thanks!
>>
>> ____________________________________________________________ _____
>> Express yourself instantly with MSN Messenger! Download today it's FREE!
>> http://messenger.msn.click-url.com/go/onm00200471ave/direct/ 01/
>>
hardware clock [message #9061 is a reply to message #9033] Fri, 15 December 2006 11:48 Go to previous messageGo to next message
Soldatov Dmitry is currently offline  Soldatov Dmitry
Messages: 8
Registered: October 2006
Junior Member
Hello, all!

I have a problem with hardware clock in VPS...

In the host:
[root@rh0 dv]# date
Fri Dec 15 14:36:44 MSK 2006
[root@rh0 dv]# hwclock
Fri 15 Dec 2006 02:36:44 PM MSK -0.099140 seconds
- thats right :)


but in VPS I have:
[root@h0028 ssh]# date
Fri Dec 15 06:37:28 EST 2006
[root@h0028 ssh]# hwclock
Fri Dec 15 11:37:37 2006 -0.138324 seconds

what should I do? i need to simply create new VPS from cache and get
right date/time inside. I need right date/time inside Host too.

I try to allow RW to /dev/rtc in VPS, but no result

--
Солдатов Дмитрий
Ведущий специалист НИОКР
ОАО "ТелеNet"
Тел.: +7(4822)456784
E-mail: dvorkin@tvcom.ru
Re: hardware clock [message #9064 is a reply to message #9061] Fri, 15 December 2006 12:56 Go to previous messageGo to next message
Thorsten Schifferdeck is currently offline  Thorsten Schifferdeck
Messages: 38
Registered: February 2006
Member
Hi Dvorkin Dmitry,

> in the host
> [root@rh0 dv]# date
> Fri Dec 15 14:36:44 MSK 2006

> but in VPS I have:
> [root@h0028 ssh]# date
> Fri Dec 15 06:37:28 EST 2006

EST => UT-5:00
MSK => UT+3:00

the timezone between VE0 (here: rh0) and VE (here: h0028) differs, look at
http://forum.openvz.org/index.php?t=msg&th=1662&star t=0&
for setting your right timezone in your VE.

Regards,
Thorsten Schifferdecker
--
tsd@debian.systs.org
Re: My question with my VPS [message #9104 is a reply to message #9034] Mon, 18 December 2006 09:09 Go to previous messageGo to next message
xiao liu is currently offline  xiao liu
Messages: 2
Registered: December 2006
Junior Member
Kir and Andrey, thank you for your help! The problem is in numproc value as
you told me. I edit my VID.conf, restart my VE and I can create 128 thread
now.

Thanks,
Xiao Liu

>From: Andrey Mirkin <major@openvz.org>
>To: users@openvz.org
>CC: "xiao liu" <saosao_liu@hotmail.com>
>Subject: Re: [Users] My question with my VPS
>Date: Thu, 14 Dec 2006 08:41:18 +0300
>
>Hello.
>
>Can you please look into /proc/user_beancounters for failcounters for your
>VE.
>I think the problem is in numproc value in you case.
>BTW, if you edit config file manually then you need to restart your the
>problem is in numproc valueVE to
>apply changes.
>
>Thanks,
>Andrey
>
>On Thursday 14 December 2006 05:07 xiao liu wrote:
> > Hello. I have a question with my VPS. I create a
>fedora-core-4-i386-default
> > VPS with OpenVZ. When I do a ping-pong test, I found my VPS the problem
>is in numproc valueonly can create
> > 16 thread at most. So I view my VID.conf and edit
>PRIVVMPAGES="49152:53575"
> > to PRIVVMPAGES="991520:1035750", then I found I still only can create 45
> > thread. But I think there is enough mem in my computer...
> > Attached my ping-pong test sourse code
> >
> > Could anyone help me? Thanks!
> >
> > ____________________________________________________________ _____
> > Express yourself instantly with MSN Messenger! Download today it's FREE!
> > http://messenger.msn.click-url.com/go/onm00200471ave/direct/ 01/

____________________________________________________________ _____
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01 /
Re: My question with my VPS [message #9105 is a reply to message #9104] Mon, 18 December 2006 09:57 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

xiao,

you don't need to restart the VE.
just type:
# vzctl set <VEID> --numproc 256 --save
and it will be changed on the fly.

Thanks,
Kirill


> Kir and Andrey, thank you for your help! The problem is in numproc value as
> you told me. I edit my VID.conf, restart my VE and I can create 128 thread
> now.
>
> Thanks,
> Xiao Liu
>
>
>>From: Andrey Mirkin <major@openvz.org>
>>To: users@openvz.org
>>CC: "xiao liu" <saosao_liu@hotmail.com>
>>Subject: Re: [Users] My question with my VPS
>>Date: Thu, 14 Dec 2006 08:41:18 +0300
>>
>>Hello.
>>
>>Can you please look into /proc/user_beancounters for failcounters for your
>>VE.
>>I think the problem is in numproc value in you case.
>>BTW, if you edit config file manually then you need to restart your the
>>problem is in numproc valueVE to
>>apply changes.
>>
>>Thanks,
>>Andrey
>>
>>On Thursday 14 December 2006 05:07 xiao liu wrote:
>>
>>>Hello. I have a question with my VPS. I create a
>>
>>fedora-core-4-i386-default
>>
>>>VPS with OpenVZ. When I do a ping-pong test, I found my VPS the problem
>>
>>is in numproc valueonly can create
>>
>>>16 thread at most. So I view my VID.conf and edit
>>
>>PRIVVMPAGES="49152:53575"
>>
>>>to PRIVVMPAGES="991520:1035750", then I found I still only can create 45
>>>thread. But I think there is enough mem in my computer...
>>>Attached my ping-pong test sourse code
>>>
>>>Could anyone help me? Thanks!
>>>
>>> ____________________________________________________________ _____
>>>Express yourself instantly with MSN Messenger! Download today it's FREE!
>>> http://messenger.msn.click-url.com/go/onm00200471ave/direct/ 01/
>
>
> ____________________________________________________________ _____
> FREE pop-up blocking with the new MSN Toolbar - get it now!
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01 /
>
Previous Topic: Load Sharing/Balancing and Standby Redundacy among VMs
Next Topic: Cannot add VLAN devices to guest with new kernel
Goto Forum:
  


Current Time: Sat May 25 00:57:38 GMT 2024

Total time taken to generate the page: 0.01680 seconds