[Vserver] Tuning HD performance

2006-08-28 Thread Arnór Kristjánsson

Hi,

I'm running a vserver running various LAMP servers. A while ago I  
installed munin to check how the server was behaving at various  
times. It turns out that the server has a LOT of iowait (up to 115)  
when under load.


What I did was that I ran tiobench on the local HD and this is what I  
got:

--
Sequential Reads
  File  Blk   Num
Avg  Maximum  Lat% Lat%CPU
IdentifierSize  Size  Thr   Rate  (CPU%)   
LatencyLatency  >2s  >10sEff
 -- - ---  -- --  
- ---    -
2.6.14.3-vs2.0.1  100   40961  446.29 99.97%  
0.0060.04   0.0  0.0   446
2.6.14.3-vs2.0.1  100   40962  728.70 396.4%  
0.0070.05   0.0  0.0   184
2.6.14.3-vs2.0.1  100   40964  855.43 1587.%  
0.0110.20   0.0  0.054
2.6.14.3-vs2.0.1  100   40968  839.09 2328.%  
0.013   56.08   0.0  0.036


Random Reads
  File  Blk   Num
Avg  Maximum  Lat% Lat%CPU
IdentifierSize  Size  Thr   Rate  (CPU%)   
LatencyLatency  >2s  >10sEff
 -- - ---  -- --  
- ---    -
2.6.14.3-vs2.0.1  100   40961  418.79 96.48%  
0.0060.02   0.0  0.0   434
2.6.14.3-vs2.0.1  100   40962  754.47 386.3%  
0.0060.04   0.0  0.0   195
2.6.14.3-vs2.0.1  100   40964  839.15 1374.%  
0.0100.05   0.0  0.061
2.6.14.3-vs2.0.1  100   40968  739.47 870.8%  
0.0090.04   0.0  0.085


Sequential Writes
  File  Blk   Num
Avg  Maximum  Lat% Lat%CPU
IdentifierSize  Size  Thr   Rate  (CPU%)   
LatencyLatency  >2s  >10sEff
 -- - ---  -- --  
- ---    -
2.6.14.3-vs2.0.1  100   409616.89 4.602%  
0.0219.83   0.0  0.0   150
2.6.14.3-vs2.0.1  100   409629.12 15.32%  
0.031   80.06   0.0  0.060
2.6.14.3-vs2.0.1  100   409649.65 52.36%  
0.0400.54   0.0  0.018
2.6.14.3-vs2.0.1  100   409689.92 102.5%  
0.066  100.08   0.0  0.010


Random Writes
  File  Blk   Num
Avg  Maximum  Lat% Lat%CPU
IdentifierSize  Size  Thr   Rate  (CPU%)   
LatencyLatency  >2s  >10sEff
 -- - ---  -- --  
- ---    -
2.6.14.3-vs2.0.1  100   409610.34 0.148%  
0.0100.03   0.0  0.0   230
2.6.14.3-vs2.0.1  100   409620.34 0.352%  
0.0110.06   0.0  0.098
2.6.14.3-vs2.0.1  100   409640.37 1.033%  
0.0170.07   0.0  0.036
2.6.14.3-vs2.0.1  100   409680.38 1.596%  
0.0160.14   0.0  0.024

--

I'm wondering; shouldn't the CPU % be lower on reads? Is there a way  
to increase this performance?


A.
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Add IP to vserver

2006-05-05 Thread Arnór Kristjánsson

No, just these settings...
On 5.5.2006, at 01:44, ehab heikal wrote:


Did u need to change any settings in the vserver itself?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Arnór
Kristjánsson
Sent: Friday, May 05, 2006 4:27 AM
To: vserver@list.linux-vserver.org
Subject: Re: [Vserver] Add IP to vserver


What I did was to add files to /etc/vservers//interfaces
dir; basically copying like so: cp -r
/etc/vservers/
How do I add an IP to a vserver?
I added 2 ips by editing the configuration of the vserver, but now
these
Ips are not accessible from computers outside my lan, as if they do
not
route right.

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Add IP to vserver

2006-05-04 Thread Arnór Kristjánsson

from http://this.is/promazin/?p=page&ID=1


update Feb 06 2006
networking and mask settings
It is extremely important to set the mask for every single host. I  
created severe problems on the network by using the default mask  
settings. ifconfig does not display this so I suggest the iproute  
package, including the lovable tool ip addr, use it to give you  
detailed information about your interfaces.
The mask is set in the following manner echo 255.255.xxx.xxx > /etc/ 
vservers/vserver-name/interfaces/0/mask.
You can also use a file called prefix and set the subnet there, for  
example echo 24 > /etc/vservers/vserver-name/interfaces/0/prefix


Using the vserver command to create a new vserver.
vserver build \
-n ltsp \
--hostname ltsp.domain.com \
--interface vlan10:172.201.222.10 \
-m debootstrap -- -d sarge

On 5.5.2006, at 01:30, ehab heikal wrote:


I did that but the ips are only accessible from our LAN and do not
route. These IP are routable since I was using them on another  
server in

the same datacenter so the Ips them selves have no problems and they
have the same gateway etc.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Arnór
Kristjánsson
Sent: Friday, May 05, 2006 4:27 AM
To: vserver@list.linux-vserver.org
Subject: Re: [Vserver] Add IP to vserver


What I did was to add files to /etc/vservers//interfaces
dir; basically copying like so: cp -r
/etc/vservers/
How do I add an IP to a vserver?
I added 2 ips by editing the configuration of the vserver, but now
these
Ips are not accessible from computers outside my lan, as if they do
not
route right.

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Add IP to vserver

2006-05-04 Thread Arnór Kristjánsson

What I did was to add files to
/etc/vservers//interfaces dir; basically copying like so:
cp -r /etc/vservers/
and then editing the ip and mask files in "1".

Some of my servers have 4 different ips set up this way.

HTH,
A.

On 5.5.2006, at 00:54, ehab heikal wrote:


How do I add an IP to a vserver?
I added 2 ips by editing the configuration of the vserver, but now  
these
Ips are not accessible from computers outside my lan, as if they do  
not

route right.

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] libsensors3 and capabilities

2006-04-06 Thread Arnór Kristjánsson

Hi,

I'm trying to install jffnms inside a debian etch vserver guest (my  
test box). dpkg-reconfigure libsensors3 tells me that the kernel  
isn't compiled with sensors support, but I'd swear it is there. I got  
to thinking it was a capability thing. Can anyone point me in the  
right direction?


A.

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] libsensors3 and capabilites

2006-04-06 Thread Arnór Kristjánsson

Hi,

I'm trying to install jffnms inside a debian etch vserver guest (my  
test box). dpkg-reconfigure libsensors3 tells me that the kernel  
isn't compiled with sensors support, but I'd swear it is there. I got  
to thinking it was a capability thing. Can anyone point me in the  
right direction?


A.
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] vlan

2006-03-28 Thread Arnór Kristjánsson
I used the guide available at: http://this.is/promazin/?p=page&ID=1  
and it worked wonders for me. The only thing "not covered" (not  
implying that the guide should) is that Cisco uses VLAN1 for  
management and that VLAN should therefore not be tagged. I use VLAN1  
for data (because of legacy reasons) and therefore had to change the  
config examples provided from:


auto lo
iface lo inet loopback

auto eth0 vlan2 vlan10 vlan20

# iface eth has to be up with no ip number

iface eth0 inet static
address 0.0.0.0
netmask 0.0.0.0
vlan_raw_device eth0

iface vlan2 inet static
address 172.201.221.17
netmask 255.255.255.224
gateway 172.201.221.17
vlan_raw_device eth0
...
--
to
--
auto lo
iface lo inet loopback

auto eth0 vlan2 vlan10 vlan20

# iface eth has to be up with no ip number

iface eth0 inet static
address 0.0.0.0
netmask 0.0.0.0
vlan_raw_device eth0

iface vlan2 inet static
address 172.201.221.17
netmask 255.255.255.224
gateway 172.201.221.17
vlan_raw_device eth0

iface vlan10 inet static
address 172.201.222.4
netmask 255.255.254.0
gateway 172.201.222.1
vlan_raw_device eth0

iface vlan20 inet static
address 192.168.1.254
netmask 255.255.255.0
gateway 192.168.1.1
vlan_raw_device eth0

---

to

--
auto lo
iface lo inet loopback

auto eth0 vlan2 vlan10 vlan20

# iface eth has to be up with no ip number

iface eth0 inet static
address 172.201.221.17
netmask 255.255.255.224
gateway 172.201.221.17

iface vlan10 inet static
address 172.201.222.4
netmask 255.255.254.0
gateway 172.201.222.1
vlan_raw_device eth0

iface vlan20 inet static
address 192.168.1.254
netmask 255.255.255.0
gateway 192.168.1.1
vlan_raw_device eth0
--

and it worked wonderfully!
Basically what this does is to define eth0 as a regular interface and  
the VLANx interfaces as VLANs on a raw_device...


HTH

A.

On 28.3.2006, at 13:59, Chuck wrote:

is there any in-depth guide/documentation to fully explain  
construction of

vlans with respect to vservers?

my boss now wants to change our "unique port" network vlan  
structure to

multiple vlans on a single port.


--

Chuck




___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver