Gravatar

Re: [Xen-devel] Re: About profiling xen

On 09/30/09 00:45, Marco Tizzoni wrote:
> On Wed, Sep 30, 2009 at 8:40 AM, Marco Tizzoni <marco.tizzoni <at> gmail.com> wrote:
>   
>> On Wed, Sep 30, 2009 at 8:37 AM, Pasi Kärkkäinen <pasik <at> iki.fi> wrote:
>>     
>>> 250 per second.. sounds like kernel HZ value?
>>>       
>> Yes, infact I'm going to test it with 1000Khz. Stay tuned.
>>     
> Building dom0 kernel with 1000hz the rate reach 1k. Ok, one point. Then?
> Why this behaviour occurs only on xenolinux?
>   

Which kernel are you using?  Do you have:

CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y

configured?

    J
Gravatar

Re: [Xen-devel] Re: About profiling xen

On 09/30/09 02:06, Marco Tizzoni wrote:
> Enabling debug on kernel I realized the problem is related to timer accuracy.
> ------------------------------------------------------------------------
> hal9k-dom0 ~ # cat /proc/timer_list
> Timer List Version: v0.3
> HRTIMER_MAX_CLOCK_BASES: 2
> now at 784689453083 nsecs
>
> cpu: 0
>  clock 0:
>  .index:      0
>  .resolution: 999848 nsecs
> [........]
> hal9k-dom0 ~ # cat
> /sys/devices/system/clocksource/clocksource0/available_clocksource
> xen jiffies
> hal9k-dom0 ~ # cat
> /sys/devices/system/clocksource/clocksource0/current_clocksource
> xen
> ------------------------------------------------------------------------
>
> Is there a way to make available a better timer (hpet,acpi....)?
>   

Your clocksource is "xen", which is the best possible for a PV xen guest.

However, a clocksource is for measuring elapsed time, not triggering
timers.  Unfortunately there doesn't seem to be a /sys file to show the
current clockevent source in use, but if you have "xen" clocksource it's
almost certainly the xen clockevent.
(Continue reading)

Luca Lesinigo | 1 Oct 01:33

disk I/O problems under load? (Xen-3.4.1/x86_64)

I'm getting problems whenever the load on a system increase, but IMHO  
it should be well withing hardware capabilities.

My configuration:
- HP Proliant DL160G5, with a single quadcore E5405, 14GiB RAM, 2x1TB  
sata disks Hitachi 7K1000.B on the onboard sata controller (intel  
chipset)
- Xen-3.4.1 64bit hypervisor, compiled from gentoo portage, with  
default commandline settings (I just specify the serial console and  
nothing else)
- Domain-0 with gentoo's xen-sources 2.6.21 (the xen 2.6.18 tarball  
didn't have networking, I think the HP Tigon3 gigabit driver is too  
old but hadn't time to look into that
- Domain-0 is using the CFQ i/o scheduler, and works from a software  
raid-1, no tickless kernel, HZ=100. It has all the free ram (currently  
some 5.x GiB)
- the rest of the disks is also mirrored in a raid-1 device, and I use  
LVM2 on top of that
- 6x paravirt 64bit DomU with 2.6.29-gentoo-r5 kernel, with NOOP i/o  
scheduler, tickless kernel. 1 - 1.5GiB of ram each.
- 1x HVM 32bit Windows XP DomU, without any paravirt driver, 512MiB RAM
- I use logical volumes as storage space for DomU's, the linux ones  
also have 0.5GiB of swap space (unused, no DomU is swapping)
- all the linux DomU are on ext3 (noatime), and all DomU are single- 
cpu (just one vcpu each)
- network is bridged (one lan and one wan interface on the physical  
system and the same for each domU), no jumbo frames

Usually load on the system is very low. But when there is some I/O  
related load (I can easily trigger it by rsync'ing lots of stuff  
(Continue reading)

amina elbekkali | 1 Oct 02:29
Picon

it's about xen and xorp

  hi all
i hope you are all fine,I post this mail with the hope i will find an explanation for my too problems. 
i 'm actually working on an internship subject about xen technology: install xorp router in the virtual domain of the xen hypervisor.
this installation should be done on a PC with too NIC.
The problem is that i don't know what is the utility of too NIC in such installation, why should i use too  NIC and not only one?  That was my first problem

The second problem is : i am working on a laptop which contain too NIC: an Ethernet one and a wireless one, so my question is: deos xen  create automatically a bridge for the wireless NIC as for the Ethernet one?   or should i create the bridge of the wireless NIC with commands?

Thanks in advance
regards


_______________________________________________
Xen-users mailing list
Xen-users <at> lists.xensource.com
http://lists.xensource.com/xen-users
Nick Couchman | 1 Oct 05:29
Favicon

Pass through multiple USB Devices

So, now that I've determined that PCI pass-through requires VTd, I'm looking into USB pass-through to get
serial ports from my dom0 to my HVM domUs.  My first question is this: has there been any progress made in the
current stable versions of Xen on passing through multiple USB devices?  How about the unstable versions? 
Since my domUs will be Windows-based, it's annoying to have to give up the absolute mouse point support
(usbdevice=tablet) just so I can forward a USB device through.  Furthermore, if I have multiple
USB-to-Serial devices attached to my dom0 that I need passed through to my domU, can I do that?

I've also seen a couple of posts that allude to some sort of patch for the Xen code that enables multiple USB
pass through - can anyone confirm this and point me in the right direction?

Thanks!
-Nick

--------
This e-mail may contain confidential and privileged material for the sole use of the intended recipient. 
If this email is not intended for you, or you are not responsible for the delivery of this message to the
intended recipient, please note that this message may contain SEAKR Engineering (SEAKR)
Privileged/Proprietary Information.  In such a case, you are strictly prohibited from downloading,
photocopying, distributing or otherwise using this message, its contents or attachments in any way.  If
you have received this message in error, please notify us immediately by replying to this e-mail and
delete the message from your mailbox.  Information contained in this message that does not relate to the
business of SEAKR is neither endorsed by nor attributable to SEAKR.
abhi datt | 1 Oct 05:47
Picon

Maximum RAM, CPU and Filesystem size per VM

Hi,
We are planning a 128 GB RAM, 8 CPU (Hexacore) = 48 Cores; host server with 10 TB storage.
We plan to run only 2-3 production level SAP instances on this.
 
Could someone throw light on these basic facts.

-How much maximum RAM we can allocate per VM

-How many max CPU cores we can allocate per VM

-Maximum filesystem size (storage) we can assign per VM


thanks
Abhi


_______________________________________________
Xen-users mailing list
Xen-users <at> lists.xensource.com
http://lists.xensource.com/xen-users
James Harper | 1 Oct 06:15
Picon

RE: Pass through multiple USB Devices

> 
> So, now that I've determined that PCI pass-through requires VTd, I'm
looking
> into USB pass-through to get serial ports from my dom0 to my HVM
domUs.  My
> first question is this: has there been any progress made in the
current stable
> versions of Xen on passing through multiple USB devices?  How about
the
> unstable versions?  Since my domUs will be Windows-based, it's
annoying to
> have to give up the absolute mouse point support (usbdevice=tablet)
just so I
> can forward a USB device through.  Furthermore, if I have multiple
USB-to-
> Serial devices attached to my dom0 that I need passed through to my
domU, can
> I do that?
> 
> I've also seen a couple of posts that allude to some sort of patch for
the Xen
> code that enables multiple USB pass through - can anyone confirm this
and
> point me in the right direction?
> 

Noboru Iwamatsu has developed the frontend and backed drivers for Linux.
Last I heard he would be submitting some updates shortly.

I have implemented the frontend driver in GPLPV, but have only tested a
USB memory stick in it. Other devices that use INTERRUPT or ISOC
transfers almost certainly won't yet work, but probably won't be too
hard to fix.

James
Rupert | 1 Oct 09:06

Re: 2 network devices inside a domU with one bridge

Hello,

i just tried it again and I got a panic again,
than I did a kernel update inside the domu and now the system is running.

thnx a lot for your help

greetings

On Tue, Sep 29, 2009 at 10:41 AM, Grant McWilliams <grantmasterflash <at> gmail.com> wrote:

On Tue, Sep 29, 2009 at 12:37 AM, Fajar A. Nugraha <fajar <at> fajar.net> wrote:
On Tue, Sep 29, 2009 at 2:02 PM, Rupert <linuxmls <at> googlemail.com> wrote:
> On Tue, Sep 29, 2009 at 8:52 AM, Fajar A. Nugraha <fajar <at> fajar.net> wrote:

>> domU panic? What does it say?
>> Did you use the latest kernel-xen? If not, try updating first.
>>

> i have the 2.6.18-92.1.22.el5xen kernel inside the domU and
> 2.6.18-92.1.13.el5xen in the dom0.

Redhat is at 2.6.18-164.el5. Centos should be around 2.6.18-128.*
using latest xen and kernel helps rule-out known problems.

In any case, if the panic is in domU, then upgrading domU kernel
should help. Paste the text so others can help you pinpoint the
problem.

If dom0 panics because you start domU, well ,,, lets just say that
shouldn't happen. At least not with up-to-date RHEL/Centos dom0. If it
happens then your system have a serious problem.

--
Fajar

__

CentOS is at 2.6.18-164.el5 as well.

Grant McWilliams

_______________________________________________
Xen-users mailing list
Xen-users <at> lists.xensource.com
http://lists.xensource.com/xen-users
Pasi Kärkkäinen | 1 Oct 09:12
Picon
Picon
Favicon

Re: disk I/O problems under load? (Xen-3.4.1/x86_64)

On Thu, Oct 01, 2009 at 01:33:57AM +0200, Luca Lesinigo wrote:
> I'm getting problems whenever the load on a system increase, but IMHO  
> it should be well withing hardware capabilities.
> 
> My configuration:
> - HP Proliant DL160G5, with a single quadcore E5405, 14GiB RAM, 2x1TB  
> sata disks Hitachi 7K1000.B on the onboard sata controller (intel  
> chipset)
> - Xen-3.4.1 64bit hypervisor, compiled from gentoo portage, with  
> default commandline settings (I just specify the serial console and  
> nothing else)
> - Domain-0 with gentoo's xen-sources 2.6.21 (the xen 2.6.18 tarball  
> didn't have networking, I think the HP Tigon3 gigabit driver is too  
> old but hadn't time to look into that
> - Domain-0 is using the CFQ i/o scheduler, and works from a software  
> raid-1, no tickless kernel, HZ=100. It has all the free ram (currently  
> some 5.x GiB)
> - the rest of the disks is also mirrored in a raid-1 device, and I use  
> LVM2 on top of that
> - 6x paravirt 64bit DomU with 2.6.29-gentoo-r5 kernel, with NOOP i/o  
> scheduler, tickless kernel. 1 - 1.5GiB of ram each.
> - 1x HVM 32bit Windows XP DomU, without any paravirt driver, 512MiB RAM
> - I use logical volumes as storage space for DomU's, the linux ones  
> also have 0.5GiB of swap space (unused, no DomU is swapping)
> - all the linux DomU are on ext3 (noatime), and all DomU are single- 
> cpu (just one vcpu each)
> - network is bridged (one lan and one wan interface on the physical  
> system and the same for each domU), no jumbo frames
> 
> Usually load on the system is very low. But when there is some I/O  
> related load (I can easily trigger it by rsync'ing lots of stuff  
> between domU's or from a different system to one of the domU or to the  
> dom0) load gets very high and I often see domU's spending all their  
> cpu time in "wait" [for I/O] state. When that happens, load on  
> Domain-0 gets high (jumps from <1 to >5) and loads on DomU's get high  
> too probably because of processes waiting for I/O to happen. Sometimes  
> iostat will even show exactly 0.00 tps on all the dm-X devices (domU  
> storage backends) and some activity on the physical devices, like all  
> domU I/O activity froze up while dom0 is busy flushing caches or doing  
> some other stuff.
> 
> vmstat in Dom0 shows one or two cores (25% or 50% cpu time) busy in  
> 'iowait' state, and context switches go in the thousands, but not in  
> the hundreths thousands that http://wiki.xensource.com/xenwiki/KnownIssues 
>  talks about.
> 

You have only 2x 7200 rpm disks for 7 virtual machines and you're
wondering why there's a lot of iowait? :)

> I tried pinning cpus: Domain-0 had its four VCPUs pinned to CPUs 0 and  
> 1, some domU's pinned to CPU 2, and some domU's pinned to CPU 3. As  
> far as I can tell it did not do any difference.
> I also (briefly) tested with all linux DomU's running with the CFQ  
> scheduler, while it didn't seem to make any difference it also was too  
> short of a test to trust it much.
> 
> What's worse, sometimes I get qemu-dm processes (for the HVM domU) in  
> zombie state. It also happened that the HVM domU crashed and I wasn't  
> able to restart it: I got the hotplug scripts not working error from  
> xm create, and looking in xenstore-ls I saw instances of the crashed  
> domU with all its resources (which probably was the cause of the  
> error?). Had the reboot the whole system to be able to start that  
> domain again.
> 
> Normally iostat in Domain-0 shows more or less high tps (200~300 under  
> normal load, even higher if I play around with rsync to artificially  
> trigger the problems) on the md device where all the DomU reside, and  
> much less (usually just 10-20% of the previous value) on the two  
> physical disks sda and sdb that compose the mirror. I guess I see less  
> tps because the scheduler/elevator in Dom-0 is doing its job.
> 
> I don't know if the load problems and the HVM problem are linked or  
> not, but I also don't know where to look to solve any one of them.
> 
> Any help would be appreciated, thank you very much. Also, what are  
> ideal/recommended settings in dom0 and domU regarding i/o schedulers  
> and tickless or not?
> Is there any reason to leave the hypervisor some extra free ram or it  
> is ok to just let xend shrink dom0 when needed and leave free just the  
> minimum? If I sum up memory (currently) used by domains, I get  
> 14146MiB. xm info says 14335MiB total_memory and 10MiB free_memory.
> 

Single 7200 rpm SATA disk can do around 120 random IOPS.. 
120 IO operations per second.

120 IOPS / 7 VMs = 17 IOPS available per VM.

That's not much..

-- Pasi
Marco Tizzoni | 1 Oct 09:35
Picon

Re: [Xen-devel] Re: About profiling xen

On Thu, Oct 1, 2009 at 1:23 AM, Jeremy Fitzhardinge <jeremy <at> goop.org> wrote:
> Your clocksource is "xen", which is the best possible for a PV xen guest.
>
> However, a clocksource is for measuring elapsed time, not triggering
> timers.

Why? How would you solve the problem of raising events at a fixed rate?

> Unfortunately there doesn't seem to be a /sys file to show the
> current clockevent source in use, but if you have "xen" clocksource it's
> almost certainly the xen clockevent.
>
> However, this is only relevent if you have CONFIG_NO_HZ and
> CONFIG_HIGHRES_TIMERS enabled.

I've tried both set/unset but nothing change.

m-

Gmane