Home » General » Support » How does one size a HN? Is RAM or CPU more important?
How does one size a HN? Is RAM or CPU more important? [message #9460] |
Thu, 04 January 2007 06:49  |
jarcher
Messages: 91 Registered: August 2006 Location: Smithfield, Rhode Island
|
Member |
|
|
Hello...
I have some questions about sizing a hardware node. I read the OpenVZ docs and noted a few things.
First, it says that the low memory, which is 3.6GB when using the enterprise kernel or 382MB when using the Uniprocessor or SMP kernel, is the "most important" RAM area (page 59). Also, on page 60, it says that the number of VPSs can be doubled by using disk swap space.
I don't quite understand the implications of this. Does this mean that installing physical RAM beyond 4GB in the HN is a waste of money, or is that memory used by VPSs? Is this a matter of memory pages being swapped into and out of low memory as needed, and the RAM beyond the first 5.6GB is essentially non-disk swap?
Regarding CPU power, I see that OpenVZ has an app to calculate the "power" of the node in CPU units and we can control the CPU units a VPS is allocated. Is there anywhere a comparison of how many CPU units equates to a specific processor, even roughly? If I had a dual-xenon, how would I know how many VPSs I can cut this into?
I also saw in the manual that it is okay to over commit the HN, but I'm wondering how much over commitment we can get away with. I realize it depends upon how busy each VPS is and there is no hard and fast number for this, but I would appreciate any experience you folks could offer.
Finally, I saw in several places that a HN could be able to run 20 to 50 VPSs, but I'm wondering how much hardware needs to be put in the HN to accomplish that. What tends to be the limiting factor, RAM or CPU? I also seem to recall being told that 100 VPSs are possible on a single HN.
Thanks very much. I would appreciate any insight, as I will be ordering hardware soon.
|
|
|
Re: How does one size a HN? Is RAM or CPU more important? [message #9472 is a reply to message #9460] |
Fri, 05 January 2007 00:41   |
rickb
Messages: 368 Registered: October 2006
|
Senior Member |
|
|
Quote: | physical RAM beyond 4GB in the HN is a waste of money
|
Ram above 4GB is not a waste. I have a HN with 16GB of memory and the VEs can use all of it.
Quote: |
Regarding CPU power, I see that OpenVZ has an app to calculate the "power" of the node in CPU units and we can control the CPU units a VPS is allocated. Is there anywhere a comparison of how many CPU units equates to a specific processor, even roughly? If I had a dual-xenon, how would I know how many VPSs I can cut this into?
|
Read my post here about cpuunits. Its an arbitrary value, it doesn't correlate to "power".:
http://forum.openvz.org/index.php?t=tree&goto=8620&& amp;srch=cpuunits+cpulimit#msg_8620
Quote: | I'm wondering how much over commitment we can get away with.
|
Its totally dependent on your real usage needs. You can spawn thousands of VEs that do nothing and your system will never know the difference. Sleeping processes use very little resources. Or, you can have one running process per cpu in your server and it will choke. So, it totally depends on your applications. You can choke out any server with 1 heavy VE or load up 10,000 VEs which do almost nothing on a Pentium 3.
Quote: | I would appreciate any insight
|
I have used all sorts of combinations from single cpu, dual, quad, xeon, opteron, dual cores on each, etc. Best bang for the buck in my opinion and from my experience
Late model supermicro board, 2x dual core 2.xGHz opteron, 8GB ECC, 4X disk (whatever you can afford, scsi better of course) @ Raid 1+0, hardware raid with 128/256MB cache enabled.
Rick Blundell
-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions
UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
|
|
|
|
|
|
|
|
Re: How does one size a HN? Is RAM or CPU more important? [message #10544 is a reply to message #10538] |
Wed, 21 February 2007 11:27   |
rickb
Messages: 368 Registered: October 2006
|
Senior Member |
|
|
Thank you for the information, truly a valuable post. I have some further questions if you have time.
-------------
What sector readahead value are you using with blockdev? Default on my card is 256 (blockdev --getra /dev/sdX), the pdf suggest 16384 secs.
I am using ext3 but am not using any tuned values beyond noatime. Have you found and performance gains from optimizations on the fs level?
I am using the cfq io scheduler, because after reading and unofficially testing it, it seems to deliver the best io response time for a shared resource system. Although deadline may offer better overall io performance, fairness is more relevant in a shared resource environment. What are your thoughts on this?
My servers with this card have 8GB of ram, and I have created 8GB of swap; after 63 days of uptime, the system stays constant with ~2.5GB of swap utilized. I have read that adjusting the amount of swap in the system can positively effect performance. Do you have any ideas there?
[root@gallium ~]# free -m
total used free shared buffers cached
Mem: 8029 8004 24 0 97 1586
-/+ buffers/cache: 6320 1709
Swap: 8000 2609 5391
My primary indicator of "disk performance" in a shared resource environment is a (lower) iowait value over time (vmstat, sar, iostat, etc). Do you find this relevant?
-Rick Blundell
-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions
UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
[Updated on: Thu, 22 February 2007 02:50] Report message to a moderator
|
|
|
Re: How does one size a HN? Is RAM or CPU more important? [message #10558 is a reply to message #9472] |
Thu, 22 February 2007 06:31   |
jarcher
Messages: 91 Registered: August 2006 Location: Smithfield, Rhode Island
|
Member |
|
|
rickb wrote on Thu, 04 January 2007 19:41 | I have used all sorts of combinations from single cpu, dual, quad, xeon, opteron, dual cores on each, etc. Best bang for the buck in my opinion and from my experience
Late model supermicro board, 2x dual core 2.xGHz opteron, 8GB ECC, 4X disk (whatever you can afford, scsi better of course) @ Raid 1+0, hardware raid with 128/256MB cache enabled.
|
Hi Rick, thanks very much for the response! I apologize for not replying earlier but I only now saw your reply.
Well I guessed well, because I just built up a SuperMicro dual socket Xeon with a pair of Xeon 5140 chips and 8GB RAM. Well, I am still waiting for the RAM to arrive but that will be Friday. I can add RAM up to 64GB and I can upgrade the CPUs if I need to to the quad-core. They will be cheaper by the time I need them.
I'll be using a SAN box via iSCSI for the storage.
The SAN box, BTW, has an Areca ARC-1230 RAID card. I have not measured it's performance, but from a feature and management standpoint I just love it. I'm running a 3TB array in RAID 6 for now and I have 6 empty sleds for expansion.
I'[m hoping to be able to run at least 150 light to medium ('A' and 'B' machines from the example configurations) VPSes on this hardware. Fingers crossed.
Thanks!!
|
|
|
|
Re: How does one size a HN? Is RAM or CPU more important? [message #10564 is a reply to message #10560] |
Thu, 22 February 2007 09:05   |
rickb
Messages: 368 Registered: October 2006
|
Senior Member |
|
|
Quote: | Does a dual-core processor also have hyperthreading in each core, or does a dual-core processor always count as 2 processors?
|
It depends on the model. Some do and some don't- check your intel specs sheet. I know this xeon is dual core with ht:
"Dual Core Processor 2.8GHz, 800MHz FSB, 2 x 2MB L2 cache, 135W,
90nm, mPGA604"
Quote: | processor : 7
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Genuine Intel(R) CPU 2.80GHz
stepping : 8
cpu MHz : 2794.252
cache size : 2048 KB
physical id : 1
siblings : 4
core id : 3
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm pni monitor ds_cpl est cid xtpr
bogomips : 5585.25
|
With this model, linux sees 8 CPUs. but there are two physical ones in there. Quad core, quad cpu, hyperthread. not sure about that one but sounds pretty crazy. 4*4*2
-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions
UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
|
|
|
|
Re: How does one size a HN? Is RAM or CPU more important? [message #10579 is a reply to message #9460] |
Thu, 22 February 2007 15:26  |
alticon-brian
Messages: 27 Registered: February 2006 Location: Washington, DC
|
Junior Member |
|
|
FYI, Hyperthreading isn't really geared as a server technology. It's more for the desktop space.
This is especially the case where you have applications which actually benefit from multi-threading (i.e. databases) which perform much better with hyperthreading turned off.
As a rule, i turn off HT on all of our ovz boxes, but thats just because of previous experience and the knowledge that it shouldn't be getting some huge boost from it, not from any actual performance testing.
I'd love to hear the opinions of some other folks on this.
|
|
|
Goto Forum:
Current Time: Thu Jul 31 01:05:28 GMT 2025
Total time taken to generate the page: 0.11923 seconds
|