XEN 4.0 + 2.6.31.13 pvops kernel : system crashes on starting 155th domU
Hi All,
We are setting up a system with a large number of very small VMs for a project. We worked through a number of limitations, including those imposed by blktap2 devices and the number of dynamic IRQ (set kernel config NR_CPUS) etc. After these changes we were able to get to 154 domUs (!), but as soon as we start up the 155th domU the system crashes. We edited each domU config to have one blktap2 device (the disk image) and two virtual network interfaces each.
We are using the standard XEN 4.0 (stable/release version) with the 2.6.31.13 (pvops) kernel.
Attached is the output of /var/log/daemon.log and /var/log/xen/xend.log, but as far as we can see we don't quite know what might be going causing the system to crash (no console access anymore and system becomes unresponsive and needs to be power-cycled). I have pasted only the relevant bits of information (the last domU that did successfully start and the next one that failed). It may be the case that all the log messages weren't flushed before the system crashed.
Does anyone know where this limit of 155 domU is coming from and how we can fix/increase it?
thanks
Yuvraj
Apr 26 20:08:08 BlackBox tapdisk2[10074]: Created /dev/xen/blktap-2/blktap152 device
Apr 26 20:08:08 BlackBox tapdisk2[10074]: Created /dev/xen/blktap-2/tapdev152 device
Apr 26 20:08:08 BlackBox tapdisk2[10074]: new interface: ring: 251, device: 253, minor: 152
Apr 26 20:08:08 BlackBox tapdisk2[10074]: I/O queue driver: lio
Apr 26 20:08:08 BlackBox tapdisk2[10074]: block-aio open('/home/xen/domains/testing-ss-155.ucsd.edu/disk.img')
Apr 26 20:08:08 BlackBox tapdisk2[10074]: open(/home/xen/domains/testing-ss-155.ucsd.edu/disk.img) with O_DIRECT
Apr 26 20:08:08 BlackBox tapdisk2[10074]: Image size: #012#011pre sector_shift [1073741824]#012#011post sector_shift [2097152]
Apr 26 20:08:08 BlackBox tapdisk2[10074]: opened image /home/xen/domains/testing-ss-155.ucsd.edu/disk.img (1 users, state: 0x00000001, type: 0)
Apr 26 20:08:08 BlackBox tapdisk2[10074]: VBD CHAIN:
Apr 26 20:08:08 BlackBox tapdisk2[10074]: /home/xen/domains/testing-ss-155.ucsd.edu/disk.img: 0
Apr 26 20:08:09 BlackBox logger: /etc/xen/scripts/block: add XENBUS_PATH=backend/vbd/153/770
Apr 26 20:08:10 BlackBox logger: /etc/xen/scripts/vif-bridge: online XENBUS_PATH=backend/vif/153/0
Apr 26 20:08:10 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking.
Apr 26 20:08:10 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking.
Apr 26 20:08:10 BlackBox logger: /etc/xen/scripts/vif-bridge: Successful vif-bridge online for vif153.0, bridge testbr.
Apr 26 20:08:10 BlackBox logger: /etc/xen/scripts/vif-bridge: Writing backend/vif/153/0/hotplug-status connected to xenstore.
Apr 26 20:08:21 BlackBox logger: /etc/xen/scripts/block: Writing backend/vbd/153/770/physical-device fd:98 to xenstore.
Apr 26 20:08:21 BlackBox logger: /etc/xen/scripts/block: Writing backend/vbd/153/770/hotplug-status connected to xenstore.
Apr 26 20:08:21 BlackBox logger: /etc/xen/scripts/vif-bridge: online XENBUS_PATH=backend/vif/153/1
Apr 26 20:08:21 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking.
Apr 26 20:08:21 BlackBox logger: /etc/xen/scripts/vif-bridge: Successful vif-bridge online for vif153.1, bridge dummy.
Apr 26 20:08:21 BlackBox logger: /etc/xen/scripts/vif-bridge: Writing backend/vif/153/1/hotplug-status connected to xenstore.Apr 26 20:10:17 BlackBox tapdisk2[12749]: Created /dev/xen/blktap-2/blktap153 device
Apr 26 20:10:17 BlackBox tapdisk2[12749]: Created /dev/xen/blktap-2/tapdev153 device
Apr 26 20:10:17 BlackBox tapdisk2[12749]: new interface: ring: 251, device: 253, minor: 153
Apr 26 20:10:17 BlackBox tapdisk2[12749]: I/O queue driver: lio
Apr 26 20:10:17 BlackBox tapdisk2[12749]: block-aio open('/home/xen/domains/testing-ss-156.ucsd.edu/disk.img')
Apr 26 20:10:17 BlackBox tapdisk2[12749]: open(/home/xen/domains/testing-ss-156.ucsd.edu/disk.img) with O_DIRECT
Apr 26 20:10:17 BlackBox tapdisk2[12749]: Image size: #012#011pre sector_shift [1073741824]#012#011post sector_shift [2097152]
Apr 26 20:10:17 BlackBox tapdisk2[12749]: opened image /home/xen/domains/testing-ss-156.ucsd.edu/disk.img (1 users, state: 0x00000001, type: 0)
Apr 26 20:10:17 BlackBox tapdisk2[12749]: VBD CHAIN:
Apr 26 20:10:17 BlackBox tapdisk2[12749]: /home/xen/domains/testing-ss-156.ucsd.edu/disk.img: 0
Apr 26 20:10:17 BlackBox logger: /etc/xen/scripts/block: add XENBUS_PATH=backend/vbd/154/770
Apr 26 20:10:29 BlackBox logger: /etc/xen/scripts/block: Writing backend/vbd/154/770/physical-device fd:99 to xenstore.
Apr 26 20:10:29 BlackBox logger: /etc/xen/scripts/block: Writing backend/vbd/154/770/hotplug-status connected to xenstore.
Apr 26 20:10:30 BlackBox logger: /etc/xen/scripts/vif-bridge: online XENBUS_PATH=backend/vif/154/0
Apr 26 20:10:30 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking.
Apr 26 20:10:30 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking.
Apr 26 20:10:30 BlackBox logger: /etc/xen/scripts/vif-bridge: Successful vif-bridge online for vif154.0, bridge testbr.
Apr 26 20:10:30 BlackBox logger: /etc/xen/scripts/vif-bridge: Writing backend/vif/154/0/hotplug-status connected to xenstore.
Apr 26 20:10:30 BlackBox logger: /etc/xen/scripts/vif-bridge: online XENBUS_PATH=backend/vif/154/1
Apr 26 20:10:30 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking.
Apr 26 20:10:30 BlackBox logger: /etc/xen/scripts/vif-bridge: Successful vif-bridge online for vif154.1, bridge dummy.
Apr 26 20:10:30 BlackBox logger: /etc/xen/scripts/vif-bridge: Writing backend/vif/154/1/hotplug-status connected to xenstore.[2010-04-26 20:10:16 2359] DEBUG (XendDomainInfo:101) XendDomainInfo.create(['vm', ['name', 'testing-ss-156.ucsd.edu'], ['memory', '64'], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['vcpus', 1], ['oos', 1], ['image', ['linux', ['kernel', '/home/xen/xen-install/x32bit-fromkapaki/vmlinuz-2.6.24-21-xen'], ['ramdisk', '/home/xen/xen-install/x32bit-fromkapaki/initrd.img-2.6.24-21-xen'], ['root', '/dev/hda2 ro'], ['videoram', 4], ['args', '2 console=xvc0'], ['tsc_mode', 0], ['nomigrate', 0]]], ['s3_integrity', 1], ['device', ['tap2', ['uname', 'tap:aio:/home/xen/domains/testing-ss-156.ucsd.edu/disk.img'], ['dev', 'hda2'], ['mode', 'w']]], ['device', ['vif', ['ip', '192.168.200.156'], ['mac', '00:77:22:33:44:9C'], ['bridge', 'testbr']]], ['device', ['vif', ['bridge', 'dummy']]]]) [2010-04-26 20:10:16 2359] DEBUG (XendDomainInfo:2508) XendDomainInfo.constructDomain
[2010-04-26 20:10:16 2359] DEBUG (balloon:220) Balloon: 4022792 KiB free; need 16384; done.
[2010-04-26 20:10:16 2359] DEBUG (XendDomain:464) Adding Domain: 154
[2010-04-26 20:10:16 2359] DEBUG (XendDomainInfo:2818) XendDomainInfo.initDomain: 154 256
[2010-04-26 20:10:17 2359] DEBUG (XendDomainInfo:2845) _initDomain:shadow_memory=0x0, memory_static_max=0x4000000, memory_static_min=0x0.
[2010-04-26 20:10:17 2359] INFO (image:182) buildDomain os=linux dom=154 vcpus=1
[2010-04-26 20:10:17 2359] DEBUG (image:721) domid = 154 [2010-04-26 20:10:17 2359] DEBUG (image:722) memsize = 64 [2010-04-26 20:10:17 2359] DEBUG (image:723) image = /home/xen/xen-install/x32bit-fromkapaki/vmlinuz-2.6.24-21-xen [2010-04-26 20:10:17 2359] DEBUG (image:724) store_evtchn = 1 [2010-04-26 20:10:17 2359] DEBUG (image:725) console_evtchn = 2 [2010-04-26 20:10:17 2359] DEBUG (image:726) cmdline = root=/dev/hda2 ro 2 console=xvc0 [2010-04-26 20:10:17 2359] DEBUG (image:727) ramdisk = /home/xen/xen-install/x32bit-fromkapaki/initrd.img-2.6.24-21-xen [2010-04-26 20:10:17 2359] DEBUG (image:728) vcpus = 1 [2010-04-26 20:10:17 2359] DEBUG (image:729) features = [2010-04-26 20:10:17 2359] DEBUG (image:730) flags = 0 [2010-04-26 20:10:17 2359] DEBUG (image:731) superpages = 0
[2010-04-26 20:10:17 2359] INFO (XendDomainInfo:2367) createDevice: tap2 : {'bootable': 1, 'uname': 'tap:aio:/home/xen/domains/testing-ss-156.ucsd.edu/disk.img', 'mode': 'w', 'dev': 'hda2', 'uuid': '532b3206-7802-8c02-3ca6-85ffae37fb21'}
[2010-04-26 20:10:17 2359] DEBUG (DevController:95) DevController: writing {'virtual-device': '770', 'device-type': 'disk', 'protocol': 'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vbd/154/770'} to /local/domain/154/device/vbd/770.
[2010-04-26 20:10:17 2359] DEBUG (DevController:97) DevController: writing {'domain': 'testing-ss-156.ucsd.edu', 'frontend': '/local/domain/154/device/vbd/770', 'uuid': '532b3206-7802-8c02-3ca6-85ffae37fb21', 'bootable': '1', 'dev': 'hda2', 'state': '1', 'params': '/dev/xen/blktap-2/tapdev153', 'mode': 'w', 'online': '1', 'frontend-id': '154', 'type': 'phy', 'tapdisk-params': 'aio:/home/xen/domains/testing-ss-156.ucsd.edu/disk.img'} to /local/domain/0/backend/vbd/154/770.
[2010-04-26 20:10:17 2359] INFO (XendDomainInfo:2367) createDevice: vif : {'ip': '192.168.200.156', 'mac': '00:77:22:33:44:9C', 'uuid': 'd86cdace-35a6-fd85-5920-cbc74895535b', 'bridge': 'testbr'}
[2010-04-26 20:10:17 2359] DEBUG (DevController:95) DevController: writing {'mac': '00:77:22:33:44:9C', 'handle': '0', 'protocol': 'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/154/0'} to /local/domain/154/device/vif/0.
[2010-04-26 20:10:17 2359] DEBUG (DevController:97) DevController: writing {'bridge': 'testbr', 'domain': 'testing-ss-156.ucsd.edu', 'handle': '0', 'uuid': 'd86cdace-35a6-fd85-5920-cbc74895535b', 'script': '/etc/xen/scripts/vif-bridge', 'ip': '192.168.200.156', 'mac': '00:77:22:33:44:9C', 'frontend-id': '154', 'state': '1', 'online': '1', 'frontend': '/local/domain/154/device/vif/0'} to /local/domain/0/backend/vif/154/0.
[2010-04-26 20:10:30 2359] INFO (XendDomainInfo:2367) createDevice: vif : {'bridge': 'dummy', 'mac': '00:16:3e:32:d5:2c', 'uuid': 'c3a244df-030d-ec04-63cd-6823e76d90a8'}
[2010-04-26 20:10:30 2359] DEBUG (DevController:95) DevController: writing {'mac': '00:16:3e:32:d5:2c', 'handle': '1', 'protocol': 'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/154/1'} to /local/domain/154/device/vif/1.
[2010-04-26 20:10:30 2359] DEBUG (DevController:97) DevController: writing {'bridge': 'dummy', 'domain': 'testing-ss-156.ucsd.edu', 'handle': '1', 'uuid': 'c3a244df-030d-ec04-63cd-6823e76d90a8', 'script': '/etc/xen/scripts/vif-bridge', 'mac': '00:16:3e:32:d5:2c', 'frontend-id': '154', 'state': '1', 'online': '1', 'frontend': '/local/domain/154/device/vif/1'} to /local/domain/0/backend/vif/154/1.
[2010-04-26 20:10:30 2359] DEBUG (XendDomainInfo:3400) Storing VM details: {'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid': 'a976f839-b5d4-2841-2ce9-b7b5168aabc9', 'on_reboot': 'restart', 'start_time': '1272337830.28', 'on_poweroff': 'destroy', 'bootloader_args': '', 'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'bootloader': '', 'image': "(linux (kernel /home/xen/xen-install/x32bit-fromkapaki/vmlinuz-2.6.24-21-xen) (ramdisk /home/xen/xen-install/x32bit-fromkapaki/initrd.img-2.6.24-21-xen) (args 'root=/dev/hda2 ro 2 console=xvc0') (superpages 0) (videoram 4) (pci ()) (nomigrate 0) (tsc_mode 0) (notes (HV_START_LOW 4118806528) (FEATURES 'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel') (VIRT_BASE 3221225472) (GUEST_VERSION 2.6) (PADDR_OFFSET 3221225472) (GUEST_OS linux) (HYPERCALL_PAGE 3222278144) (LOADER generic) (SUSPEND_CANCEL 1) (PAE_MODE yes) (ENTRY 3222274048) (XEN_VERSION xen-3.0)))", 'name': 'testing-ss-156.ucsd.edu'} [2010-04-26 20:10:30 2359] DEBUG (XendDomainInfo:1804) Storing domain details: {'console/ring-ref': '3622290', 'image/entry': '3222274048', 'console/port': '2', 'store/ring-ref': '3622291', 'image/loader': 'generic', 'vm': '/vm/a976f839-b5d4-2841-2ce9-b7b5168aabc9', 'control/platform-feature-multiprocessor-suspend': '1', 'image/hv-start-low': '4118806528', 'image/guest-os': 'linux', 'image/features/writable-descriptor-tables': '1', 'image/virt-base': '3221225472', 'memory/target': '65536', 'image/guest-version': '2.6', 'image/features/supervisor-mode-kernel': '1', 'image/pae-mode': 'yes', 'description': '', 'console/limit': '1048576', 'image/paddr-offset': '3221225472', 'image/hypercall-page': '3222278144', 'image/suspend-cancel': '1', 'cpu/0/availability': 'online', 'image/features/pae-pgdir-above-4gb': '1', 'image/features/writable-page-tables': '1', 'console/type': 'xenconsoled', 'image/features/auto-translated-physmap': '1', 'name': 'testing-ss-156.ucsd.edu', 'domid': '154', 'image/xen-version': 'xen-3.0', 'store/port': '1'} [2010-04-26 20:10:32 2359] DEBUG (DevController:95) DevController: writing {'protocol': 'x86_32-abi', 'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/console/154/0'} to /local/domain/154/device/console/0.
[2010-04-26 20:10:32 2359] DEBUG (DevController:97) DevController: writing {'domain': 'testing-ss-156.ucsd.edu', 'frontend': '/local/domain/154/device/console/0', 'uuid': '0e439360-1b37-71a0-5826-4b8b0c1d7dc0', 'frontend-id': '154', 'state': '1', 'location': '2', 'online': '1', 'protocol': 'vt100'} to /local/domain/0/backend/console/154/0.
[2010-04-26 20:10:32 2359] DEBUG (XendDomainInfo:1891) XendDomainInfo.handleShutdownWatch
[2010-04-26 20:10:33 2359] DEBUG (DevController:139) Waiting for devices tap2.
[2010-04-26 20:10:33 2359] DEBUG (DevController:144) Waiting for 770.
[2010-04-26 20:10:34 2359] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vbd/154/770/hotplug-status.
[2010-04-26 20:10:34 2359] DEBUG (DevController:642) hotplugStatusCallback 1.
[2010-04-26 20:10:34 2359] DEBUG (DevController:139) Waiting for devices vif.
[2010-04-26 20:10:34 2359] DEBUG (DevController:144) Waiting for 0.
[2010-04-26 20:10:34 2359] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vif/154/0/hotplug-status.
[2010-04-26 20:10:34 2359] DEBUG (DevController:642) hotplugStatusCallback 1.
[2010-04-26 20:10:34 2359] DEBUG (DevController:144) Waiting for 1.
[2010-04-26 20:10:34 2359] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vif/154/1/hotplug-status.
[2010-04-26 20:10:34 2359] DEBUG (DevController:642) hotplugStatusCallback 1.
[2010-04-26 20:10:34 2359] DEBUG (DevController:139) Waiting for devices vkbd.
[2010-04-26 20:10:34 2359] DEBUG (DevController:139) Waiting for devices ioports.
[2010-04-26 20:10:35 2359] DEBUG (DevController:139) Waiting for devices tap.
[2010-04-26 20:10:35 2359] DEBUG (DevController:139) Waiting for devices vif2.
[2010-04-26 20:10:35 2359] DEBUG (DevController:139) Waiting for devices console.
[2010-04-26 20:10:35 2359] DEBUG (DevController:144) Waiting for 0.
[2010-04-26 20:10:35 2359] DEBUG (DevController:139) Waiting for devices vscsi.
[2010-04-26 20:10:35 2359] DEBUG (DevController:139) Waiting for devices vbd.
[2010-04-26 20:10:35 2359] DEBUG (DevController:139) Waiting for devices irq.
[2010-04-26 20:10:35 2359] DEBUG (DevController:139) Waiting for devices vfb.
[2010-04-26 20:10:35 2359] DEBUG (DevController:139) Waiting for devices pci.
[2010-04-26 20:10:35 2359] DEBUG (DevController:139) Waiting for devices vusb.
[2010-04-26 20:10:35 2359] DEBUG (DevController:139) Waiting for devices vtpm.
[2010-04-26 20:10:35 2359] INFO (XendDomain:1206) Domain testing-ss-156.ucsd.edu (154) unpaused.
[2010-04-26 20:10:52 2359] DEBUG (XendDomainInfo:101) XendDomainInfo.create(['vm', ['name', 'testing-ss-157.ucsd.edu'], ['memory', '64'], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['vcpus', 1], ['oos', 1], ['image', ['linux', ['kernel', '/home/xen/xen-install/x32bit-fromkapaki/vmlinuz-2.6.24-21-xen'], ['ramdisk', '/home/xen/xen-install/x32bit-fromkapaki/initrd.img-2.6.24-21-xen'], ['root', '/dev/hda2 ro'], ['videoram', 4], ['args', '2 console=xvc0'], ['tsc_mode', 0], ['nomigrate', 0]]], ['s3_integrity', 1], ['device', ['tap2', ['uname', 'tap:aio:/home/xen/domains/testing-ss-157.ucsd.edu/disk.img'], ['dev', 'hda2'], ['mode', 'w']]], ['device', ['vif', ['ip', '192.168.200.157'], ['mac', '00:77:22:33:44:9D'], ['bridge', 'testbr']]], ['device', ['vif', ['bridge', 'dummy']]]]) [2010-04-26 20:10:52 2359] DEBUG (XendDomainInfo:2508) XendDomainInfo.constructDomain
[2010-04-26 20:10:52 2359] DEBUG (balloon:220) Balloon: 3957036 KiB free; need 16384; done.
[2010-04-26 20:10:52 2359] DEBUG (XendDomain:464) Adding Domain: 155
[2010-04-26 20:10:52 2359] DEBUG (XendDomainInfo:2818) XendDomainInfo.initDomain: 155 256
[2010-04-26 20:10:52 2359] DEBUG (XendDomainInfo:2845) _initDomain:shadow_memory=0x0, memory_static_max=0x4000000, memory_static_min=0x0.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 29 lines · Yuvraj Agarwal
Hi All,
We are setting up a system with a large number of very small VMs for a project. We worked through a number of limitations, including those imposed by blktap2 devices and the number of dynamic IRQ (set kernel config
NR_CPUS) etc. After these changes we were able to get to 154 domUs (!), but as soon as we start up the 155^th domU the system crashes. We edited each domU config to have one blktap2 device (the disk image) and two virtual network interfaces each.We are using the standard XEN 4.0 (stable/release version) with the 2.6.31.13 (pvops) kernel.
Attached is the output of
/var/log/daemon.logand/var/log/xen/xend.log, but as far as we can see we don't quite know what might be going causing the system to crash (no console access anymore and system becomes unresponsive and needs to be power-cycled). I have pasted only the relevant bits of information (the last domU that did successfully start and the next one that failed). It may be the case that all the log messages weren't flushed before the system crashed...
Quoted 3 lines
Does anyone know where this limit of 155 domU is coming from and how we can fix/increase it?
Please paste your dom0 grub.conf.
Are you using memory ballooning?
-- Pasi
Quoted 55 lines
thanks
Yuvraj
Apr 26 20:08:08 BlackBox tapdisk2[10074]: Created /dev/xen/blktap-2/blktap152 device Apr 26 20:08:08 BlackBox tapdisk2[10074]: Created /dev/xen/blktap-2/tapdev152 device Apr 26 20:08:08 BlackBox tapdisk2[10074]: new interface: ring: 251, device: 253, minor: 152 Apr 26 20:08:08 BlackBox tapdisk2[10074]: I/O queue driver: lio Apr 26 20:08:08 BlackBox tapdisk2[10074]: block-aio open('/home/xen/domains/testing-ss-155.ucsd.edu/disk.img') Apr 26 20:08:08 BlackBox tapdisk2[10074]: open(/home/xen/domains/testing-ss-155.ucsd.edu/disk.img) with O_DIRECT Apr 26 20:08:08 BlackBox tapdisk2[10074]: Image size: #012#011pre sector_shift [1073741824]#012#011post sector_shift [2097152] Apr 26 20:08:08 BlackBox tapdisk2[10074]: opened image /home/xen/domains/testing-ss-155.ucsd.edu/disk.img (1 users, state: 0x00000001, type: 0) Apr 26 20:08:08 BlackBox tapdisk2[10074]: VBD CHAIN: Apr 26 20:08:08 BlackBox tapdisk2[10074]: /home/xen/domains/testing-ss-155.ucsd.edu/disk.img: 0 Apr 26 20:08:09 BlackBox logger: /etc/xen/scripts/block: add XENBUS_PATH=backend/vbd/153/770 Apr 26 20:08:10 BlackBox logger: /etc/xen/scripts/vif-bridge: online XENBUS_PATH=backend/vif/153/0 Apr 26 20:08:10 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking. Apr 26 20:08:10 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking. Apr 26 20:08:10 BlackBox logger: /etc/xen/scripts/vif-bridge: Successful vif-bridge online for vif153.0, bridge testbr. Apr 26 20:08:10 BlackBox logger: /etc/xen/scripts/vif-bridge: Writing backend/vif/153/0/hotplug-status connected to xenstore. Apr 26 20:08:21 BlackBox logger: /etc/xen/scripts/block: Writing backend/vbd/153/770/physical-device fd:98 to xenstore. Apr 26 20:08:21 BlackBox logger: /etc/xen/scripts/block: Writing backend/vbd/153/770/hotplug-status connected to xenstore. Apr 26 20:08:21 BlackBox logger: /etc/xen/scripts/vif-bridge: online XENBUS_PATH=backend/vif/153/1 Apr 26 20:08:21 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking. Apr 26 20:08:21 BlackBox logger: /etc/xen/scripts/vif-bridge: Successful vif-bridge online for vif153.1, bridge dummy. Apr 26 20:08:21 BlackBox logger: /etc/xen/scripts/vif-bridge: Writing backend/vif/153/1/hotplug-status connected to xenstore.Apr 26 20:10:17 BlackBox tapdisk2[12749]: Created /dev/xen/blktap-2/blktap153 device Apr 26 20:10:17 BlackBox tapdisk2[12749]: Created /dev/xen/blktap-2/tapdev153 device Apr 26 20:10:17 BlackBox tapdisk2[12749]: new interface: ring: 251, device: 253, minor: 153 Apr 26 20:10:17 BlackBox tapdisk2[12749]: I/O queue driver: lio Apr 26 20:10:17 BlackBox tapdisk2[12749]: block-aio open('/home/xen/domains/testing-ss-156.ucsd.edu/disk.img') Apr 26 20:10:17 BlackBox tapdisk2[12749]: open(/home/xen/domains/testing-ss-156.ucsd.edu/disk.img) with O_DIRECT Apr 26 20:10:17 BlackBox tapdisk2[12749]: Image size: #012#011pre sector_shift [1073741824]#012#011post sector_shift [2097152] Apr 26 20:10:17 BlackBox tapdisk2[12749]: opened image /home/xen/domains/testing-ss-156.ucsd.edu/disk.img (1 users, state: 0x00000001, type: 0) Apr 26 20:10:17 BlackBox tapdisk2[12749]: VBD CHAIN: Apr 26 20:10:17 BlackBox tapdisk2[12749]: /home/xen/domains/testing-ss-156.ucsd.edu/disk.img: 0 Apr 26 20:10:17 BlackBox logger: /etc/xen/scripts/block: add XENBUS_PATH=backend/vbd/154/770 Apr 26 20:10:29 BlackBox logger: /etc/xen/scripts/block: Writing backend/vbd/154/770/physical-device fd:99 to xenstore. Apr 26 20:10:29 BlackBox logger: /etc/xen/scripts/block: Writing backend/vbd/154/770/hotplug-status connected to xenstore. Apr 26 20:10:30 BlackBox logger: /etc/xen/scripts/vif-bridge: online XENBUS_PATH=backend/vif/154/0 Apr 26 20:10:30 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking. Apr 26 20:10:30 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking. Apr 26 20:10:30 BlackBox logger: /etc/xen/scripts/vif-bridge: Successful vif-bridge online for vif154.0, bridge testbr. Apr 26 20:10:30 BlackBox logger: /etc/xen/scripts/vif-bridge: Writing backend/vif/154/0/hotplug-status connected to xenstore. Apr 26 20:10:30 BlackBox logger: /etc/xen/scripts/vif-bridge: online XENBUS_PATH=backend/vif/154/1 Apr 26 20:10:30 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking. Apr 26 20:10:30 BlackBox logger: /etc/xen/scripts/vif-bridge: Successful vif-bridge online for vif154.1, bridge dummy. Apr 26 20:10:30 BlackBox logger: /etc/xen/scripts/vif-bridge: Writing backend/vif/154/1/hotplug-status connected to xenstore._______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 11 lines · Yuvraj Agarwal
Hi All,
We are setting up a system with a large number of very small VMs for a project. We worked through a number of limitations, including those imposed by blktap2 devices and the number of dynamic IRQ (set kernel config
NR_CPUS) etc. After these changes we were able to get to 154 domUs (!), but as soon as we start up the 155th domU the system crashes. We edited each domU config to have one blktap2 device (the disk image) and two virtual network interfaces each.
This sounds strangly familiar. I believe somebody posted a question about this a couple of months ago on the xen-devel mailing list and found the answer. I think part of it was CONFIG_LEGACY_PTY_COUNT had to be high. But I don't remember the exact details - you might want to search the archive.
I am not using grub2; using grub-legacy instead.
Also, once the dom0 boots up I do have to set the dom0 mem to:
(1) xm mem-set 0 12000 (otherwise when starting up a lot of domU it
would run out of memory)
and
(2) echo 1548576 > /proc/sys/fs/aio-max-nr
My /boot/grub/menu.lst (pasted relevant lines)
**************************************************
root@MESL-BlackBox:/usr/src# cat /boot/grub/menu.lst # menu.lst - See: grub(8), info grub, update-grub(8) # grub-install(8), grub-floppy(8), # grub-md5-crypt, /usr/share/doc/grub # and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used. # # You can specify 'saved' instead of a number. In this case, the default entry # is the entry saved with the command 'savedefault'. # WARNING: If you are using dmraid do not use 'savedefault' or your # array will desync and will not let you boot your system. default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 20
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified ## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z ## where x.y.z is kernel version. Minor versions can be omitted. ## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=909f7c32-639a-469d-b34b-b418d2b6a2dc ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=909f7c32-639a-469d-b34b-b418d2b6a2dc
## should update-grub create alternative automagic boot options ## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options ## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options ## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option # xenhopt=dom0_max_vcpus=1 dom0_mem=8192
## Xen Linux kernel options to use with the default Xen boot option # xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst ## only counts the first occurence of a kernel, not the ## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## specify if running in Xen domU or have grub detect automatically ## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## should update-grub create memtest86 boot option ## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system ## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options ## can be true or false
# savedefault=false
## ## End Default Options ##
title Xen 4.0.0 / Debian GNU/Linux, kernel 2.6.31.13 root (hd0,0) kernel /boot/xen-4.0.0.gz module /boot/vmlinuz-2.6.31.13 root=/dev/sda1 ro
title Xen 3.4.2 / Debian GNU/Linux, kernel 2.6.31.8-xenapr2010 root (hd0,0) kernel /boot/xen-3.4.2.gz module /boot/vmlinuz-2.6.31.8-xenapr2010 root=/dev/sda1 ro
console=tty0
module /boot/initrd.img-2.6.31.8-xenapr2010
### END DEBIAN AUTOMAGIC KERNELS LIST
Please paste your dom0 grub.conf.
Are you using memory ballooning?
-- Pasi
Thank you for the pointer. Unfortunately, I was unable to find the message you mentioned after looking through the archives...
In my current kernel config (default 2.6.31.13 pvops kernel) I don't have CONFIG_LEGACY_PTY_COUNT defined, perhaps because I have the following in the .config ?
# CONFIG_LEGACY_PTYS is not set
Do you think setting the variable above and setting the CONFIG_LEGACY_PTY_COUNT to a high value will help in this case?
--Yuvraj
-----Original Message-----
From: Konrad Rzeszutek Wilk [mailto:[email protected]]
Sent: Tuesday, April 27, 2010 6:59 AM
To: Yuvraj Agarwal
Cc: [email protected]
Subject: Re: [Xen-devel] XEN 4.0 + 2.6.31.13 pvops kernel : system crashes on starting 155th domU
Quoted 8 lines · Yuvraj Agarwal
Hi All,
We are setting up a system with a large number of very small VMs for a project. We worked through a number of limitations, including those imposed by blktap2 devices and the number of dynamic IRQ (set kernel config
NR_CPUS) etc. After these changes we were able to get to 154
domUs
Quoted 3 lines
(!), but as soon as we start up the 155th domU the system crashes. We edited each domU config to have one blktap2 device (the disk image) and two virtual network interfaces each.
This sounds strangly familiar. I believe somebody posted a question about this a couple of months ago on the xen-devel mailing list and found the answer. I think part of it was CONFIG_LEGACY_PTY_COUNT had to be high. But I don't remember the exact details - you might want to search the archive.
Quoted 9 lines · Yuvraj Agarwal
I am not using grub2; using grub-legacy instead.
Also, once the dom0 boots up I do have to set the dom0 mem to:
(1) xm mem-set 0 12000 (otherwise when starting up a lot of domU it
would run out of memory)
and
(2) echo 1548576 >/proc/sys/fs/aio-max-nr
You might want to use dom0_mem=<X>M option for xen.gz instead.
See:
http://wiki.xensource.com/xenwiki/XenBestPractices
-- Pasi
Quoted 131 lines
My
/boot/grub/menu.lst(pasted relevant lines)
**************************************************root@MESL-BlackBox:/usr/src# cat /boot/grub/menu.lst # menu.lst - See: grub(8), info grub, update-grub(8) # grub-install(8), grub-floppy(8), # grub-md5-crypt, /usr/share/doc/grub # and /usr/share/doc/grub-doc/.## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and# the entry number 0 is the default if the command is not used. # # You can specify 'saved' instead of a number. In this case, the default entry # is the entry saved with the command 'savedefault'. # WARNING: If you are using dmraid do not use 'savedefault' or your # array will desync and will not let you boot your system. default 0## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 20### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified ## by the debian update-grub script except for the default options below## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels usekopt_x_y_z## where x.y.z is kernel version. Minor versions can be omitted. ## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=909f7c32-639a-469d-b34b-b418d2b6a2dc ro## default grub root device
## e.g. groot=(hd0,0)
# groot=909f7c32-639a-469d-b34b-b418d2b6a2dc## should update-grub create alternative automagic boot options ## e.g. alternative=true
## alternative=false
# alternative=true## should update-grub lock alternative automagic boot options ## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash## should update-grub lock old automagic boot options ## e.g. lockold=false
## lockold=true
# lockold=false## Xen hypervisor options to use with the default Xen boot option # xenhopt=dom0_max_vcpus=1 dom0_mem=8192
## Xen Linux kernel options to use with the default Xen boot option # xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single## controls how many kernels should be put into the menu.lst ## only counts the first occurence of a kernel, not the ## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all## specify if running in Xen domU or have grub detect automatically ## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect## should update-grub create memtest86 boot option ## e.g. memtest86=true
## memtest86=false
# memtest86=true## should update-grub adjust the value of the default booted system ## can be true or false
# updatedefaultentry=false## should update-grub add savedefault to the default options ## can be true or false
# savedefault=false## ## End Default Options ##
title Xen 4.0.0 / Debian GNU/Linux, kernel 2.6.31.13 root (hd0,0) kernel /boot/xen-4.0.0.gz module /boot/vmlinuz-2.6.31.13 root=/dev/sda1 rotitle Xen 3.4.2 / Debian GNU/Linux, kernel 2.6.31.8-xenapr2010 root (hd0,0) kernel /boot/xen-3.4.2.gz module /boot/vmlinuz-2.6.31.8-xenapr2010 root=/dev/sda1 roconsole=tty0
module/boot/initrd.img-2.6.31.8-xenapr2010### END DEBIAN AUTOMAGIC KERNELS LIST
Please paste your dom0 grub.conf.
Are you using memory ballooning?-- Pasi
Quoted 11 lines · Yuvraj Agarwal
Hi All,
We are setting up a system with a large number of very small VMs for a project. We worked through a number of limitations, including those imposed by blktap2 devices and the number of dynamic IRQ (set kernel config
NR_CPUS) etc. After these changes we were able to get to 154 domUs (!), but as soon as we start up the 155^th domU the system crashes.
How does the system crash? You mean the dom0 kernel crashes?
Quoted 3 lines
Does anyone know where this limit of 155 domU is coming from and how we can fix/increase it?
What does /proc/interrupts look like before the crash? How many network and block devices do you have in dom0?
J
I did make that change (dom0_mem=8192M), but I still get the same error. When I started the 154th domU (last time it was 155th) the dom0 crashes (it kills network connections and I have to manually go and reboot it). I did get a little bit more information on xend.log and daemon.log (attached). After the last successful VM startup I did check and make sure the dom0 did indeed have enough memory.
root@MESL-BlackBox:/home/xen/noswap-configs# xm list | grep testing | wc -l 153 root@MESL-BlackBox:/home/xen/noswap-configs# xm info | grep mem
total_memory : 24490free_memory : 9254node_to_memory : node0:2076node_to_dma32_mem : node0:2076xen_commandline : dom0_mem=8192M
root@MESL-BlackBox:/home/xen/noswap-configs# xm create testing-ss-157.ucsd.edu Using config file "./testing-ss-157.ucsd.edu". Started domain testing-ss-157.ucsd.edu (id=154)
/var/log/daemon.log --> daemon.log <attached>/var/log/xend.log --> xend.log <attached>
We'd appreciate any pointers to fix this...
Thank you
--Yuvraj
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Pasi Kärkkäinen
Sent: Tuesday, April 27, 2010 10:19 AM
To: Yuvraj Agarwal
Cc: [email protected]
Subject: Re: [Xen-devel] XEN 4.0 + 2.6.31.13 pvops kernel : system crashes on starting 155th domU
Quoted 9 lines · Yuvraj Agarwal
I am not using grub2; using grub-legacy instead.
Also, once the dom0 boots up I do have to set the dom0 mem to:
(1) xm mem-set 0 12000 (otherwise when starting up a lot of domU it
would run out of memory)
and
(2) echo 1548576 >/proc/sys/fs/aio-max-nr
You might want to use dom0_mem=<X>M option for xen.gz instead.
See:
http://wiki.xensource.com/xenwiki/XenBestPractices
-- Pasi
Quoted 4 lines
My
/boot/grub/menu.lst(pasted relevant lines)
**************************************************
Quoted 8 lines
root@MESL-BlackBox:/usr/src# cat /boot/grub/menu.lst # menu.lst - See: grub(8), info grub, update-grub(8) # grub-install(8), grub-floppy(8), # grub-md5-crypt, /usr/share/doc/grub # and /usr/share/doc/grub-doc/.## default num
# Set the default entry to the entry number NUM. Numbering starts from
0,
Quoted 10 lines
and
# the entry number 0 is the default if the command is not used. # # You can specify 'saved' instead of a number. In this case, the default entry # is the entry saved with the command 'savedefault'. # WARNING: If you are using dmraid do not use 'savedefault' or your # array will desync and will not let you boot your system. default 0
Quoted 2 lines
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the
default
Quoted 99 lines
entry
# (normally the first entry defined).
timeout 20### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified ## by the debian update-grub script except for the default options below## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels usekopt_x_y_z## where x.y.z is kernel version. Minor versions can be omitted. ## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=909f7c32-639a-469d-b34b-b418d2b6a2dc ro## default grub root device
## e.g. groot=(hd0,0)
# groot=909f7c32-639a-469d-b34b-b418d2b6a2dc## should update-grub create alternative automagic boot options ## e.g. alternative=true
## alternative=false
# alternative=true## should update-grub lock alternative automagic boot options ## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash## should update-grub lock old automagic boot options ## e.g. lockold=false
## lockold=true
# lockold=false## Xen hypervisor options to use with the default Xen boot option # xenhopt=dom0_max_vcpus=1 dom0_mem=8192
## Xen Linux kernel options to use with the default Xen boot option # xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single## controls how many kernels should be put into the menu.lst ## only counts the first occurence of a kernel, not the ## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all## specify if running in Xen domU or have grub detect automatically ## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect## should update-grub create memtest86 boot option ## e.g. memtest86=true
## memtest86=false
# memtest86=true## should update-grub adjust the value of the default booted system ## can be true or false
# updatedefaultentry=false## should update-grub add savedefault to the default options ## can be true or false
# savedefault=false## ## End Default Options ##
title Xen 4.0.0 / Debian GNU/Linux, kernel 2.6.31.13 root (hd0,0) kernel /boot/xen-4.0.0.gz module /boot/vmlinuz-2.6.31.13 root=/dev/sda1 rotitle Xen 3.4.2 / Debian GNU/Linux, kernel 2.6.31.8-xenapr2010 root (hd0,0) kernel /boot/xen-3.4.2.gz module /boot/vmlinuz-2.6.31.8-xenapr2010 root=/dev/sda1 roconsole=tty0
module/boot/initrd.img-2.6.31.8-xenapr2010
Quoted 8 lines
### END DEBIAN AUTOMAGIC KERNELS LIST
Please paste your dom0 grub.conf.
Are you using memory ballooning?-- Pasi
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Apr 27 11:46:10 BlackBox tapdisk2[11178]: Created /dev/xen/blktap-2/blktap152 device
Apr 27 11:46:10 BlackBox tapdisk2[11178]: Created /dev/xen/blktap-2/tapdev152 device
Apr 27 11:46:10 BlackBox tapdisk2[11178]: new interface: ring: 251, device: 253, minor: 152
Apr 27 11:46:10 BlackBox tapdisk2[11178]: I/O queue driver: lio
Apr 27 11:46:10 BlackBox tapdisk2[11178]: block-aio open('/home/xen/domains/testing-ss-156.ucsd.edu/disk.img')
Apr 27 11:46:10 BlackBox tapdisk2[11178]: open(/home/xen/domains/testing-ss-156.ucsd.edu/disk.img) with O_DIRECT
Apr 27 11:46:10 BlackBox tapdisk2[11178]: Image size: #012#011pre sector_shift [1073741824]#012#011post sector_shift [2097152]
Apr 27 11:46:10 BlackBox tapdisk2[11178]: opened image /home/xen/domains/testing-ss-156.ucsd.edu/disk.img (1 users, state: 0x00000001, type: 0)
Apr 27 11:46:10 BlackBox tapdisk2[11178]: VBD CHAIN:
Apr 27 11:46:10 BlackBox tapdisk2[11178]: /home/xen/domains/testing-ss-156.ucsd.edu/disk.img: 0
Apr 27 11:46:10 BlackBox logger: /etc/xen/scripts/block: add XENBUS_PATH=backend/vbd/153/770
Apr 27 11:46:22 BlackBox logger: /etc/xen/scripts/block: Writing backend/vbd/153/770/physical-device fd:98 to xenstore.
Apr 27 11:46:22 BlackBox logger: /etc/xen/scripts/block: Writing backend/vbd/153/770/hotplug-status connected to xenstore.
Apr 27 11:46:23 BlackBox logger: /etc/xen/scripts/vif-bridge: online XENBUS_PATH=backend/vif/153/0
Apr 27 11:46:23 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking.
Apr 27 11:46:23 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking.
Apr 27 11:46:23 BlackBox logger: /etc/xen/scripts/vif-bridge: Successful vif-bridge online for vif153.0, bridge testbr.
Apr 27 11:46:23 BlackBox logger: /etc/xen/scripts/vif-bridge: Writing backend/vif/153/0/hotplug-status connected to xenstore.
Apr 27 11:46:24 BlackBox logger: /etc/xen/scripts/vif-bridge: online XENBUS_PATH=backend/vif/153/1
Apr 27 11:46:24 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking.
Apr 27 11:46:24 BlackBox logger: /etc/xen/scripts/vif-bridge: Successful vif-bridge online for vif153.1, bridge dummy.
Apr 27 11:46:24 BlackBox logger: /etc/xen/scripts/vif-bridge: Writing backend/vif/153/1/hotplug-status connected to xenstore.^C
root@BlackBox:/home/yuvraj# tail -f /var/log/daemon.log root@BlackBox:/home/yuvraj# tail -f /var/log/daemon.log Apr 27 11:46:22 BlackBox logger: /etc/xen/scripts/block: Writing backend/vbd/153/770/hotplug-status connected to xenstore. Apr 27 11:46:23 BlackBox logger: /etc/xen/scripts/vif-bridge: online XENBUS_PATH=backend/vif/153/0 Apr 27 11:46:23 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking. Apr 27 11:46:23 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking. Apr 27 11:46:23 BlackBox logger: /etc/xen/scripts/vif-bridge: Successful vif-bridge online for vif153.0, bridge testbr. Apr 27 11:46:23 BlackBox logger: /etc/xen/scripts/vif-bridge: Writing backend/vif/153/0/hotplug-status connected to xenstore. Apr 27 11:46:24 BlackBox logger: /etc/xen/scripts/vif-bridge: online XENBUS_PATH=backend/vif/153/1 Apr 27 11:46:24 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking. Apr 27 11:46:24 BlackBox logger: /etc/xen/scripts/vif-bridge: Successful vif-bridge online for vif153.1, bridge dummy. Apr 27 11:46:24 BlackBox logger: /etc/xen/scripts/vif-bridge: Writing backend/vif/153/1/hotplug-status connected to xenstore.
Apr 27 11:48:25 BlackBox tapdisk2[11975]: Created /dev/xen/blktap-2/blktap153 device
Apr 27 11:48:25 BlackBox tapdisk2[11975]: Created /dev/xen/blktap-2/tapdev153 device
Apr 27 11:48:25 BlackBox tapdisk2[11975]: new interface: ring: 251, device: 253, minor: 153
Apr 27 11:48:25 BlackBox tapdisk2[11975]: I/O queue driver: lio
Apr 27 11:48:25 BlackBox tapdisk2[11975]: block-aio open('/home/xen/domains/testing-ss-157.ucsd.edu/disk.img')
Apr 27 11:48:25 BlackBox tapdisk2[11975]: open(/home/xen/domains/testing-ss-157.ucsd.edu/disk.img) with O_DIRECT
Apr 27 11:48:25 BlackBox tapdisk2[11975]: Image size: #012#011pre sector_shift [1073741824]#012#011post sector_shift [2097152]
Apr 27 11:48:25 BlackBox tapdisk2[11975]: opened image /home/xen/domains/testing-ss-157.ucsd.edu/disk.img (1 users, state: 0x00000001, type: 0)
Apr 27 11:48:25 BlackBox tapdisk2[11975]: VBD CHAIN:
Apr 27 11:48:25 BlackBox tapdisk2[11975]: /home/xen/domains/testing-ss-157.ucsd.edu/disk.img: 0
Apr 27 11:48:26 BlackBox logger: /etc/xen/scripts/block: add XENBUS_PATH=backend/vbd/154/770
Apr 27 11:48:26 BlackBox logger: /etc/xen/scripts/vif-bridge: online XENBUS_PATH=backend/vif/154/0
Apr 27 11:48:26 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking.
Apr 27 11:48:26 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking.
Apr 27 11:48:26 BlackBox logger: /etc/xen/scripts/vif-bridge: Successful vif-bridge online for vif154.0, bridge testbr.
Apr 27 11:48:26 BlackBox logger: /etc/xen/scripts/vif-bridge: Writing backend/vif/154/0/hotplug-status connected to xenstore.
Apr 27 11:48:27 BlackBox logger: /etc/xen/scripts/vif-bridge: online XENBUS_PATH=backend/vif/154/1
Apr 27 11:48:27 BlackBox logger: /etc/xen/scripts/vif-bridge: iptables setup failed. This may affect guest networking.
Apr 27 11:48:27 BlackBox logger: /etc/xen/scripts/vif-bridge: Successful vif-bridge online for vif154.1, bridge dummy.
Apr 27 11:48:27 BlackBox logger: /etc/xen/scripts/vif-bridge: Writing backend/vif/154/1/hotplug-status connected to xenstore.
Apr 27 11:48:39 BlackBox logger: /etc/xen/scripts/block: Writing backend/vbd/154/770/physical-device fd:99 to xenstore.
Apr 27 11:48:39 BlackBox logger: /etc/xen/scripts/block: Writing backend/vbd/154/770/hotplug-status connected to xenstore.
root@MESL-BlackBox:/home/yuvraj# tail -f /var/log/xen/xend.log
[2010-04-27 11:46:29 2360] DEBUG (DevController:139) Waiting for devices console.
[2010-04-27 11:46:29 2360] DEBUG (DevController:144) Waiting for 0.
[2010-04-27 11:46:29 2360] DEBUG (DevController:139) Waiting for devices vscsi.
[2010-04-27 11:46:29 2360] DEBUG (DevController:139) Waiting for devices vbd.
[2010-04-27 11:46:29 2360] DEBUG (DevController:139) Waiting for devices irq.
[2010-04-27 11:46:29 2360] DEBUG (DevController:139) Waiting for devices vfb.
[2010-04-27 11:46:29 2360] DEBUG (DevController:139) Waiting for devices pci.
[2010-04-27 11:46:29 2360] DEBUG (DevController:139) Waiting for devices vusb.
[2010-04-27 11:46:30 2360] DEBUG (DevController:139) Waiting for devices vtpm.
[2010-04-27 11:46:30 2360] INFO (XendDomain:1206) Domain testing-ss-156.ucsd.edu (153) unpaused.[2010-04-27 11:48:24 2360] DEBUG (XendDomainInfo:101) XendDomainInfo.create(['vm', ['name', 'testing-ss-157.ucsd.edu'], ['memory', '64'], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['vcpus', 1], ['oos', 1], ['image', ['linux', ['kernel', '/home/xen/xen-install/x32bit-fromkapaki/vmlinuz-2.6.24-21-xen'], ['ramdisk', '/home/xen/xen-install/x32bit-fromkapaki/initrd.img-2.6.24-21-xen'], ['root', '/dev/hda2 ro'], ['videoram', 4], ['args', '2 console=xvc0'], ['tsc_mode', 0], ['nomigrate', 0]]], ['s3_integrity', 1], ['device', ['tap2', ['uname', 'tap:aio:/home/xen/domains/testing-ss-157.ucsd.edu/disk.img'], ['dev', 'hda2'], ['mode', 'w']]], ['device', ['vif', ['ip', '192.168.200.157'], ['mac', '00:77:22:33:44:9D'], ['bridge', 'testbr']]], ['device', ['vif', ['bridge', 'dummy']]]]) [2010-04-27 11:48:24 2360] DEBUG (XendDomainInfo:2508) XendDomainInfo.constructDomain
[2010-04-27 11:48:24 2360] DEBUG (balloon:220) Balloon: 9477100 KiB free; need 16384; done.
[2010-04-27 11:48:24 2360] DEBUG (XendDomain:464) Adding Domain: 154
[2010-04-27 11:48:24 2360] DEBUG (XendDomainInfo:2818) XendDomainInfo.initDomain: 154 256
[2010-04-27 11:48:25 2360] DEBUG (XendDomainInfo:2845) _initDomain:shadow_memory=0x0, memory_static_max=0x4000000, memory_static_min=0x0.
[2010-04-27 11:48:25 2360] INFO (image:182) buildDomain os=linux dom=154 vcpus=1
[2010-04-27 11:48:25 2360] DEBUG (image:721) domid = 154 [2010-04-27 11:48:25 2360] DEBUG (image:722) memsize = 64 [2010-04-27 11:48:25 2360] DEBUG (image:723) image = /home/xen/xen-install/x32bit-fromkapaki/vmlinuz-2.6.24-21-xen [2010-04-27 11:48:25 2360] DEBUG (image:724) store_evtchn = 1 [2010-04-27 11:48:25 2360] DEBUG (image:725) console_evtchn = 2 [2010-04-27 11:48:25 2360] DEBUG (image:726) cmdline = root=/dev/hda2 ro 2 console=xvc0 [2010-04-27 11:48:25 2360] DEBUG (image:727) ramdisk = /home/xen/xen-install/x32bit-fromkapaki/initrd.img-2.6.24-21-xen [2010-04-27 11:48:25 2360] DEBUG (image:728) vcpus = 1 [2010-04-27 11:48:25 2360] DEBUG (image:729) features = [2010-04-27 11:48:25 2360] DEBUG (image:730) flags = 0 [2010-04-27 11:48:25 2360] DEBUG (image:731) superpages = 0
[2010-04-27 11:48:25 2360] INFO (XendDomainInfo:2367) createDevice: tap2 : {'bootable': 1, 'uname': 'tap:aio:/home/xen/domains/testing-ss-157.ucsd.edu/disk.img', 'mode': 'w', 'dev': 'hda2', 'uuid': '7d5b73e7-fefc-8156-140b-3e6def7fe01e'}
[2010-04-27 11:48:25 2360] DEBUG (DevController:95) DevController: writing {'virtual-device': '770', 'device-type': 'disk', 'protocol': 'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vbd/154/770'} to /local/domain/154/device/vbd/770.
[2010-04-27 11:48:25 2360] DEBUG (DevController:97) DevController: writing {'domain': 'testing-ss-157.ucsd.edu', 'frontend': '/local/domain/154/device/vbd/770', 'uuid': '7d5b73e7-fefc-8156-140b-3e6def7fe01e', 'bootable': '1', 'dev': 'hda2', 'state': '1', 'params': '/dev/xen/blktap-2/tapdev153', 'mode': 'w', 'online': '1', 'frontend-id': '154', 'type': 'phy', 'tapdisk-params': 'aio:/home/xen/domains/testing-ss-157.ucsd.edu/disk.img'} to /local/domain/0/backend/vbd/154/770.
[2010-04-27 11:48:25 2360] INFO (XendDomainInfo:2367) createDevice: vif : {'ip': '192.168.200.157', 'mac': '00:77:22:33:44:9D', 'uuid': '3fe1879a-dce1-2ea5-dad6-3ef1d27b4866', 'bridge': 'testbr'}
[2010-04-27 11:48:26 2360] DEBUG (DevController:95) DevController: writing {'mac': '00:77:22:33:44:9D', 'handle': '0', 'protocol': 'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/154/0'} to /local/domain/154/device/vif/0.
[2010-04-27 11:48:26 2360] DEBUG (DevController:97) DevController: writing {'bridge': 'testbr', 'domain': 'testing-ss-157.ucsd.edu', 'handle': '0', 'uuid': '3fe1879a-dce1-2ea5-dad6-3ef1d27b4866', 'script': '/etc/xen/scripts/vif-bridge', 'ip': '192.168.200.157', 'mac': '00:77:22:33:44:9D', 'frontend-id': '154', 'state': '1', 'online': '1', 'frontend': '/local/domain/154/device/vif/0'} to /local/domain/0/backend/vif/154/0.
[2010-04-27 11:48:26 2360] INFO (XendDomainInfo:2367) createDevice: vif : {'bridge': 'dummy', 'mac': '00:16:3e:4d:0f:6e', 'uuid': '5afdbbdd-b25d-19f5-14ff-0357d96dfae9'}
[2010-04-27 11:48:26 2360] DEBUG (DevController:95) DevController: writing {'mac': '00:16:3e:4d:0f:6e', 'handle': '1', 'protocol': 'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/154/1'} to /local/domain/154/device/vif/1.
[2010-04-27 11:48:26 2360] DEBUG (DevController:97) DevController: writing {'bridge': 'dummy', 'domain': 'testing-ss-157.ucsd.edu', 'handle': '1', 'uuid': '5afdbbdd-b25d-19f5-14ff-0357d96dfae9', 'script': '/etc/xen/scripts/vif-bridge', 'mac': '00:16:3e:4d:0f:6e', 'frontend-id': '154', 'state': '1', 'online': '1', 'frontend': '/local/domain/154/device/vif/1'} to /local/domain/0/backend/vif/154/1.
[2010-04-27 11:48:26 2360] DEBUG (XendDomainInfo:3400) Storing VM details: {'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid': 'b396dd83-c66a-e224-e4b8-91684fe1b964', 'on_reboot': 'restart', 'start_time': '1272394106.84', 'on_poweroff': 'destroy', 'bootloader_args': '', 'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'bootloader': '', 'image': "(linux (kernel /home/xen/xen-install/x32bit-fromkapaki/vmlinuz-2.6.24-21-xen) (ramdisk /home/xen/xen-install/x32bit-fromkapaki/initrd.img-2.6.24-21-xen) (args 'root=/dev/hda2 ro 2 console=xvc0') (superpages 0) (videoram 4) (pci ()) (nomigrate 0) (tsc_mode 0) (notes (HV_START_LOW 4118806528) (FEATURES 'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel') (VIRT_BASE 3221225472) (GUEST_VERSION 2.6) (PADDR_OFFSET 3221225472) (GUEST_OS linux) (HYPERCALL_PAGE 3222278144) (LOADER generic) (SUSPEND_CANCEL 1) (PAE_MODE yes) (ENTRY 3222274048) (XEN_VERSION xen-3.0)))", 'name': 'testing-ss-157.ucsd.edu'} [2010-04-27 11:48:39 2360] DEBUG (XendDomainInfo:1804) Storing domain details: {'console/ring-ref': '5435922', 'image/entry': '3222274048', 'console/port': '2', 'store/ring-ref': '5435923', 'image/loader': 'generic', 'vm': '/vm/b396dd83-c66a-e224-e4b8-91684fe1b964', 'control/platform-feature-multiprocessor-suspend': '1', 'image/hv-start-low': '4118806528', 'image/guest-os': 'linux', 'image/features/writable-descriptor-tables': '1', 'image/virt-base': '3221225472', 'memory/target': '65536', 'image/guest-version': '2.6', 'image/features/supervisor-mode-kernel': '1', 'image/pae-mode': 'yes', 'description': '', 'console/limit': '1048576', 'image/paddr-offset': '3221225472', 'image/hypercall-page': '3222278144', 'image/suspend-cancel': '1', 'cpu/0/availability': 'online', 'image/features/pae-pgdir-above-4gb': '1', 'image/features/writable-page-tables': '1', 'console/type': 'xenconsoled', 'image/features/auto-translated-physmap': '1', 'name': 'testing-ss-157.ucsd.edu', 'domid': '154', 'image/xen-version': 'xen-3.0', 'store/port': '1'} [2010-04-27 11:48:41 2360] DEBUG (DevController:95) DevController: writing {'protocol': 'x86_32-abi', 'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/console/154/0'} to /local/domain/154/device/console/0.
[2010-04-27 11:48:41 2360] DEBUG (DevController:97) DevController: writing {'domain': 'testing-ss-157.ucsd.edu', 'frontend': '/local/domain/154/device/console/0', 'uuid': '7026bbc4-841f-dc6a-e865-431ced12d8a8', 'frontend-id': '154', 'state': '1', 'location': '2', 'online': '1', 'protocol': 'vt100'} to /local/domain/0/backend/console/154/0.
[2010-04-27 11:48:42 2360] DEBUG (XendDomainInfo:1891) XendDomainInfo.handleShutdownWatch
[2010-04-27 11:48:42 2360] DEBUG (DevController:139) Waiting for devices tap2.
[2010-04-27 11:48:42 2360] DEBUG (DevController:144) Waiting for 770.
[2010-04-27 11:48:43 2360] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vbd/154/770/hotplug-status.
[2010-04-27 11:48:43 2360] DEBUG (DevController:642) hotplugStatusCallback 1.
[2010-04-27 11:48:43 2360] DEBUG (DevController:139) Waiting for devices vif.
[2010-04-27 11:48:43 2360] DEBUG (DevController:144) Waiting for 0.
[2010-04-27 11:48:43 2360] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vif/154/0/hotplug-status.
[2010-04-27 11:48:43 2360] DEBUG (DevController:642) hotplugStatusCallback 1.
[2010-04-27 11:48:43 2360] DEBUG (DevController:144) Waiting for 1.
[2010-04-27 11:48:43 2360] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vif/154/1/hotplug-status.
[2010-04-27 11:48:43 2360] DEBUG (DevController:642) hotplugStatusCallback 1.
[2010-04-27 11:48:43 2360] DEBUG (DevController:139) Waiting for devices vkbd.
[2010-04-27 11:48:43 2360] DEBUG (DevController:139) Waiting for devices ioports.
[2010-04-27 11:48:44 2360] DEBUG (DevController:139) Waiting for devices tap.
[2010-04-27 11:48:44 2360] DEBUG (DevController:139) Waiting for devices vif2.
[2010-04-27 11:48:44 2360] DEBUG (DevController:139) Waiting for devices console.
[2010-04-27 11:48:44 2360] DEBUG (DevController:144) Waiting for 0.
[2010-04-27 11:48:44 2360] DEBUG (DevController:139) Waiting for devices vscsi.
[2010-04-27 11:48:44 2360] DEBUG (DevController:139) Waiting for devices vbd.
[2010-04-27 11:48:44 2360] DEBUG (DevController:139) Waiting for devices irq.
[2010-04-27 11:48:44 2360] DEBUG (DevController:139) Waiting for devices vfb.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Dom0 crashes (the network connections are all killed, and I cant log in locally on the machine anymore either).
I'll start up the 154 domU again and report back /proc/interrupts and the number of blktap2 devices. I do recall that when I checked last (cat /sys/class/blktap2/*/name | wc -l ) I used to get 1 blktap2 device per domU (which means that I had 154 blktap devices). Each domU has two network interfaces. I'll report back what we find when we start up all the domUs again.
On another related note it takes a LONG time to start up all these 150 domains (>20-30mins), and I believe the culprit is the xenstored since it has to write the entire xenstore for each domU. We tried to edit to build the OCAML version instead which is supposed to be faster (?), but xenstored did not start in that case. We edited the Config.mk file to
CONFIG_OCAML_XENSTORED ?= y
We did clean out the "dist" directory and rebuild and reinstall xen, but xenstored did not start up. Are we missing obvious?
--Yuvraj
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jeremy Fitzhardinge
Sent: Tuesday, April 27, 2010 11:52 AM
To: Yuvraj Agarwal
Cc: [email protected]
Subject: Re: [Xen-devel] XEN 4.0 + 2.6.31.13 pvops kernel : system crashes on starting 155th domU
Quoted 10 lines · Yuvraj Agarwal
Hi All,
We are setting up a system with a large number of very small VMs for a project. We worked through a number of limitations, including those imposed by blktap2 devices and the number of dynamic IRQ (set kernel config
NR_CPUS) etc. After these changes we were able to get to 154 domUs (!), but as soon as we start up the 155^th domU the system
crashes.
Quoted 1 line
How does the system crash? You mean the dom0 kernel crashes?
Quoted 3 lines
Does anyone know where this limit of 155 domU is coming from and how we can fix/increase it?
What does /proc/interrupts look like before the crash? How many network and block devices do you have in dom0?
J
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 3 lines · Yuvraj Agarwal
Dom0 crashes (the network connections are all killed, and I cant log in locally on the machine anymore either).
Does it display anything on the console? Do you have a serial console setup?
Quoted 3 lines
On another related note it takes a LONG time to start up all these 150 domains (>20-30mins), and I believe the culprit is the xenstored since it has to write the entire xenstore for each domU.
That should be fairly easy to verify with "top" in dom0.
Quoted 9 lines
We tried to edit to build
the OCAML version instead which is supposed to be faster (?), but xenstored did not start in that case. We edited the Config.mk file to
CONFIG_OCAML_XENSTORED?= yWe did clean out the "dist" directory and rebuild and reinstall xen, but xenstored did not start up. Are we missing obvious?
What happens if you manually start xenstored (before xend)? Does it complain, crash, something else?
I think this is a very under-tested configuration, so it wouldn't surprise me if there are problems with it.
J
Quoted 4 lines · Yuvraj Agarwal
I did make that change (dom0_mem=8192M), but I still get the same error. When I started the 154th domU (last time it was 155th) the dom0 crashes (it kills network connections and I have to manually go and reboot it).
Hmm.. interesting. It should never crash..
Do you have a serial console so you could capture the error/crash messages?
See: http://wiki.xensource.com/xenwiki/XenSerialConsole
Quoted 11 lines
I did get a little bit more information on xend.log and daemon.log (attached). After the last successful VM startup I did check and make sure the dom0 did indeed have enough memory.
root@MESL-BlackBox:/home/xen/noswap-configs# xm list | grep testing | wc -l 153 root@MESL-BlackBox:/home/xen/noswap-configs# xm info | grep mem
total_memory: 24490free_memory: 9254
Ok so over 9 GB of free memory in the hypervisor.
How's the memory in dom0? It still has 8 GB and most of it is free?
Quoted 8 lines
node_to_memory: node0:2076node_to_dma32_mem: node0:2076xen_commandline: dom0_mem=8192Mroot@MESL-BlackBox:/home/xen/noswap-configs# xm create testing-ss-157.ucsd.edu Using config file "./testing-ss-157.ucsd.edu". Started domain testing-ss-157.ucsd.edu (id=154)
How much memory does that ss-157 domU have configured?
Quoted 5 lines
/var/log/daemon.log--> daemon.log <attached>/var/log/xend.log--> xend.log <attached>We'd appreciate any pointers to fix this...
Did you disable dom0 ballooning from xend-config.sxp?
Did you make sure dom0 is NOT ballooned? Or does this crash happen when dom0 is ballooned?
Please capture Xen and dom0 messages when it crashes..
-- Pasi
Quoted 169 lines
Thank you
--Yuvraj-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Pasi Kärkkäinen
Sent: Tuesday, April 27, 2010 10:19 AM
To: Yuvraj Agarwal
Cc: [email protected]
Subject: Re: [Xen-devel] XEN 4.0 + 2.6.31.13 pvops kernel : system crashes on starting 155th domUQuoted 9 lines · Yuvraj Agarwal
I am not using grub2; using grub-legacy instead.
Also, once the dom0 boots up I do have to set the dom0 mem to:
(1) xm mem-set 0 12000 (otherwise when starting up a lot of domU it
would run out of memory)
and
(2) echo 1548576 >/proc/sys/fs/aio-max-nrYou might want to use dom0_mem=<X>M option for xen.gz instead.
See:
http://wiki.xensource.com/xenwiki/XenBestPractices-- Pasi
Quoted 4 lines
My
/boot/grub/menu.lst(pasted relevant lines)
**************************************************Quoted 8 lines
root@MESL-BlackBox:/usr/src# cat /boot/grub/menu.lst # menu.lst - See: grub(8), info grub, update-grub(8) # grub-install(8), grub-floppy(8), # grub-md5-crypt, /usr/share/doc/grub # and /usr/share/doc/grub-doc/.## default num
# Set the default entry to the entry number NUM. Numbering starts from0,
Quoted 10 lines
and
# the entry number 0 is the default if the command is not used. # # You can specify 'saved' instead of a number. In this case, the default entry # is the entry saved with the command 'savedefault'. # WARNING: If you are using dmraid do not use 'savedefault' or your # array will desync and will not let you boot your system. default 0Quoted 2 lines
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting thedefault
Quoted 99 lines
entry
# (normally the first entry defined).
timeout 20### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified ## by the debian update-grub script except for the default options below## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels usekopt_x_y_z## where x.y.z is kernel version. Minor versions can be omitted. ## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=909f7c32-639a-469d-b34b-b418d2b6a2dc ro## default grub root device
## e.g. groot=(hd0,0)
# groot=909f7c32-639a-469d-b34b-b418d2b6a2dc## should update-grub create alternative automagic boot options ## e.g. alternative=true
## alternative=false
# alternative=true## should update-grub lock alternative automagic boot options ## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash## should update-grub lock old automagic boot options ## e.g. lockold=false
## lockold=true
# lockold=false## Xen hypervisor options to use with the default Xen boot option # xenhopt=dom0_max_vcpus=1 dom0_mem=8192
## Xen Linux kernel options to use with the default Xen boot option # xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single## controls how many kernels should be put into the menu.lst ## only counts the first occurence of a kernel, not the ## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all## specify if running in Xen domU or have grub detect automatically ## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect## should update-grub create memtest86 boot option ## e.g. memtest86=true
## memtest86=false
# memtest86=true## should update-grub adjust the value of the default booted system ## can be true or false
# updatedefaultentry=false## should update-grub add savedefault to the default options ## can be true or false
# savedefault=false## ## End Default Options ##
title Xen 4.0.0 / Debian GNU/Linux, kernel 2.6.31.13 root (hd0,0) kernel /boot/xen-4.0.0.gz module /boot/vmlinuz-2.6.31.13 root=/dev/sda1 rotitle Xen 3.4.2 / Debian GNU/Linux, kernel 2.6.31.8-xenapr2010 root (hd0,0) kernel /boot/xen-3.4.2.gz module /boot/vmlinuz-2.6.31.8-xenapr2010 root=/dev/sda1 roconsole=tty0
module/boot/initrd.img-2.6.31.8-xenapr2010Quoted 8 lines
### END DEBIAN AUTOMAGIC KERNELS LIST
Please paste your dom0 grub.conf.
Are you using memory ballooning?-- Pasi
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Does it display anything on the console? Do you have a serial console setup?
Quoted 1 line
Quoted 1 line
YA: No, this machine does not have a dedicated serial console, but I
can
Quoted 1 line
Quoted 1 line
try and find another machine that does.
That should be fairly easy to verify with "top" in dom0.
Quoted 1 line
Quoted 1 line
YA: Sorry I was unclear. We have already used top to see that it is
indeed
Quoted 1 line
Quoted 1 line
xenstored that takes up a lot of CPU cycles as we increase the number
of domUs.
Quoted 1 line
Quoted 1 line
That is why we wanted to try out the OCAML version since it is supposed
to be better.
What happens if you manually start xenstored (before xend)? Does it complain, crash, something else?
Quoted 1 line
Quoted 1 line
YA: I will test this once we have the other problem worked out (number
of VMs) and report back.
Quoted 1 line
Quoted 1 line
right now the system automatically starts up xend, so I can make that
manual and test it.
I think this is a very under-tested configuration, so it wouldn't surprise me if there are problems with it.
Quoted 1 line
Quoted 1 line
YA: that's what I figured. I can help with the testing. :)
Quoted 10 lines · Yuvraj Agarwal
Attached is the output of
/var/log/daemon.logand/var/log/xen/xend.log, but as far as we can see we don¹t quite know what might be going causing the system to crash (no console access anymore and system becomes unresponsive and needs to be power-cycled). I have pasted only the relevant bits of information (the last domU that did successfully start and the next one that failed). It may be the case that all the log messages weren¹t flushed before the system crashedŠDoes anyone know where this limit of 155 domU is coming from and how we can fix/increase it?
Get a serial line on a test box, and capture Xen logging output on it. You can both see if any crash messages come from Xen when the 155th domain is created, and also try the serial debug keys (e.g., try 'h' to get help to start with) to see whether Xen itself is still alive.
-- Keir
Actually, I did identify the problem (don’t know the fix) at least from the console logs. Its related to running out of nr_irq's (attached JPG for the console log).
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Keir Fraser
Sent: Tuesday, April 27, 2010 5:44 PM
To: Yuvraj Agarwal; [email protected]
Subject: Re: [Xen-devel] XEN 4.0 + 2.6.31.13 pvops kernel : system crashes on starting 155th domU
Quoted 1 line · Yuvraj Agarwal
Attached is the output of
/var/log/daemon.logand/var/log/xen/xend.log,
but
Quoted 2 lines
as far as we can see we don¹t quite know what might be going causing the system to crash (no console access anymore and system becomes
unresponsive and
Quoted 2 lines
needs to be power-cycled). I have pasted only the relevant bits of information (the last domU that did successfully start and the next one
that
Quoted 1 line
failed). It may be the case that all the log messages weren¹t flushed
before
Quoted 3 lines
the system crashedŠ
Does anyone know where this limit of 155 domU is coming from and how we
can
Quoted 1 line
fix/increase it?
Get a serial line on a test box, and capture Xen logging output on it. You can both see if any crash messages come from Xen when the 155th domain is created, and also try the serial debug keys (e.g., try 'h' to get help to start with) to see whether Xen itself is still alive.
-- Keir
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
I think nr_irqs is specifiable on the command line on newer kernels. You may be able to do nr_irqs=65536 as a kernel boot parameter, or something like that, without needing to rebuild the kernel.
-- Keir
Quoted 44 lines · Yuvraj Agarwal
Actually, I did identify the problem (don’t know the fix) at least from the console logs. Its related to running out of nr_irq's (attached JPG for the console log).
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Keir Fraser
Sent: Tuesday, April 27, 2010 5:44 PM
To: Yuvraj Agarwal; [email protected]
Subject: Re: [Xen-devel] XEN 4.0 + 2.6.31.13 pvops kernel : system crashes on starting 155th domUQuoted 1 line · Yuvraj Agarwal
Attached is the output of
/var/log/daemon.logand/var/log/xen/xend.log,but
Quoted 2 lines
as far as we can see we don¹t quite know what might be going causing the system to crash (no console access anymore and system becomes
unresponsive and
Quoted 2 lines
needs to be power-cycled). I have pasted only the relevant bits of information (the last domU that did successfully start and the next one
that
Quoted 1 line
failed). It may be the case that all the log messages weren¹t flushed
before
Quoted 3 lines
the system crashedŠ
Does anyone know where this limit of 155 domU is coming from and how we
can
Quoted 1 line
fix/increase it?
Get a serial line on a test box, and capture Xen logging output on it. You can both see if any crash messages come from Xen when the 155th domain is created, and also try the serial debug keys (e.g., try 'h' to get help to start with) to see whether Xen itself is still alive.
-- Keir
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Cc'ing Ian and Jeremy -- one of them should be able to answer definitively on this. I'm *pretty* sure there's an easy way to bump the irq limit you're hitting, on the pv_ops kernels, but 'nr_irqs=' on dom0 cmdline clearly isn't it as it had no effect at all!
-- Keir
Quoted 123 lines · John McCullough
I did a little testing.
With no kernel option:
# dmesg | grep -i nr_irqs [ 0.000000] nr_irqs_gsi: 88 [ 0.000000] NR_IRQS:4352 nr_irqs:256w/nr_irqs=65536:
# dmesg | grep -i nr_irqs [ 0.000000] Command line: root=/dev/sda1 ro quiet console=hvc0 nr_irqs=65536 [ 0.000000] nr_irqs_gsi: 88 [ 0.000000] Kernel command line: root=/dev/sda1 ro quiet console=hvc0 nr_irqs=65536 [ 0.000000] NR_IRQS:4352 nr_irqs:256tweaking the
NR_IRQSmacro in the kernel will change theNR_IRQSoutput, but unfortunately that doesn't changenr_irqsand I run into the same limit (36 domus on a less-beefy dual core machine).I did find this:
http://blogs.sun.com/fvdl/entry/a_million_vms
which referencesNR_DYNIRQS, which is in 2.6.18, but not in the pvops kernel.Watching
/proc/interrupts, the domain irqs seem to be getting allocated from 248 downward until they hit some other limit:
...
64: 59104 xen-pirq-ioapic-level ioc089: 1 xen-dyn-event evtchn:xenconsoled 90: 1 xen-dyn-event evtchn:xenstored 91: 6 xen-dyn-event vif36.0 92: 140 xen-dyn-event blkif-backend 93: 97 xen-dyn-event evtchn:xenconsoled 94: 139 xen-dyn-event evtchn:xenstored 95: 7 xen-dyn-event vif35.0 96: 301 xen-dyn-event blkif-backend 97: 261 xen-dyn-event evtchn:xenconsoled 98: 145 xen-dyn-event evtchn:xenstored 99: 7 xen-dyn-event vif34.0...
Perhaps the xen irqs are getting allocated out of thenr_irqspool, while they could be allocated from theNR_IRQSpool?-John
Quoted 72 lines · Keir Fraser
I think
nr_irqsis specifiable on the command line on newer kernels. You may be able to do nr_irqs=65536 as a kernel boot parameter, or something like that, without needing to rebuild the kernel.-- Keir
Quoted 47 lines · Yuvraj Agarwal
Actually, I did identify the problem (don’t know the fix) at least from the console logs. Its related to running out of nr_irq's (attached JPG for the console log).
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Keir Fraser
Sent: Tuesday, April 27, 2010 5:44 PM
To: Yuvraj Agarwal; [email protected]
Subject: Re: [Xen-devel] XEN 4.0 + 2.6.31.13 pvops kernel : system crashes on starting 155th domUQuoted 2 lines · Yuvraj Agarwal
Attached is the output of
/var/log/daemon.logand/var/log/xen/xend.log,but
Quoted 3 lines
as far as we can see we don¹t quite know what might be going causing the system to crash (no console access anymore and system becomes
unresponsive and
Quoted 3 lines
needs to be power-cycled). I have pasted only the relevant bits of information (the last domU that did successfully start and the next one
that
Quoted 2 lines
failed). It may be the case that all the log messages weren¹t flushed
before
Quoted 4 lines
the system crashedŠ
Does anyone know where this limit of 155 domU is coming from and how we
can
Quoted 2 lines
fix/increase it?
Get a serial line on a test box, and capture Xen logging output on it. You can both see if any crash messages come from Xen when the 155th domain is created, and also try the serial debug keys (e.g., try 'h' to get help to start with) to see whether Xen itself is still alive.
Quoted 9 lines
-- Keir
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
I did a little testing.
With no kernel option:
# dmesg | grep -i nr_irqs [ 0.000000] nr_irqs_gsi: 88 [ 0.000000] NR_IRQS:4352 nr_irqs:256
w/nr_irqs=65536:
# dmesg | grep -i nr_irqs [ 0.000000] Command line: root=/dev/sda1 ro quiet console=hvc0 nr_irqs=65536 [ 0.000000] nr_irqs_gsi: 88 [ 0.000000] Kernel command line: root=/dev/sda1 ro quiet console=hvc0 nr_irqs=65536 [ 0.000000] NR_IRQS:4352 nr_irqs:256
tweaking the NR_IRQS macro in the kernel will change the NR_IRQS output, but unfortunately that doesn't change nr_irqs and I run into the same limit (36 domus on a less-beefy dual core machine).
I did find this:
http://blogs.sun.com/fvdl/entry/a_million_vms
which references NR_DYNIRQS, which is in 2.6.18, but not in the pvops kernel.
Watching /proc/interrupts, the domain irqs seem to be getting allocated from 248 downward until they hit some other limit:
...
64: 59104 xen-pirq-ioapic-level ioc0
89: 1 xen-dyn-event evtchn:xenconsoled 90: 1 xen-dyn-event evtchn:xenstored 91: 6 xen-dyn-event vif36.0 92: 140 xen-dyn-event blkif-backend 93: 97 xen-dyn-event evtchn:xenconsoled 94: 139 xen-dyn-event evtchn:xenstored 95: 7 xen-dyn-event vif35.0 96: 301 xen-dyn-event blkif-backend 97: 261 xen-dyn-event evtchn:xenconsoled 98: 145 xen-dyn-event evtchn:xenstored 99: 7 xen-dyn-event vif34.0
...
Perhaps the xen irqs are getting allocated out of the nr_irqs pool, while they could be allocated from the NR_IRQS pool?
-John
Quoted 72 lines · Keir Fraser
I think
nr_irqsis specifiable on the command line on newer kernels. You may be able to do nr_irqs=65536 as a kernel boot parameter, or something like that, without needing to rebuild the kernel.-- Keir
Quoted 47 lines · Yuvraj Agarwal
Actually, I did identify the problem (don’t know the fix) at least from the console logs. Its related to running out of nr_irq's (attached JPG for the console log).
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Keir Fraser
Sent: Tuesday, April 27, 2010 5:44 PM
To: Yuvraj Agarwal; [email protected]
Subject: Re: [Xen-devel] XEN 4.0 + 2.6.31.13 pvops kernel : system crashes on starting 155th domUQuoted 2 lines · Yuvraj Agarwal
Attached is the output of
/var/log/daemon.logand/var/log/xen/xend.log,but
Quoted 3 lines
as far as we can see we don¹t quite know what might be going causing the system to crash (no console access anymore and system becomes
unresponsive and
Quoted 3 lines
needs to be power-cycled). I have pasted only the relevant bits of information (the last domU that did successfully start and the next one
that
Quoted 2 lines
failed). It may be the case that all the log messages weren¹t flushed
before
Quoted 4 lines
the system crashedŠ
Does anyone know where this limit of 155 domU is coming from and how we
can
Quoted 2 lines
fix/increase it?
Get a serial line on a test box, and capture Xen logging output on it. You can both see if any crash messages come from Xen when the 155th domain is created, and also try the serial debug keys (e.g., try 'h' to get help to start with) to see whether Xen itself is still alive.
Quoted 9 lines
-- Keir
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 16 lines · John McCullough
I did a little testing.
With no kernel option:
# dmesg | grep -i nr_irqs [ 0.000000] nr_irqs_gsi: 88 [ 0.000000] NR_IRQS:4352 nr_irqs:256w/nr_irqs=65536:
# dmesg | grep -i nr_irqs [ 0.000000] Command line: root=/dev/sda1 ro quiet console=hvc0 nr_irqs=65536 [ 0.000000] nr_irqs_gsi: 88 [ 0.000000] Kernel command line: root=/dev/sda1 ro quiet console=hvc0 nr_irqs=65536 [ 0.000000] NR_IRQS:4352 nr_irqs:256
Quoted 3 lines
tweaking the
NR_IRQSmacro in the kernel will change theNR_IRQSoutput, but unfortunately that doesn't changenr_irqsand I run into the same limit (36 domus on a less-beefy dual core machine).
If you have CONFIG_SPARSE_IRQ defined in your .config, it gets overwritten by some code that figures out how many IRQs you need based on your CPU count.
So can you change NR_VECTORS in arch/x86/include/asm/irq_vectors.h to a higher value and see what happens?
Quoted 8 lines
I did find this:
http://blogs.sun.com/fvdl/entry/a_million_vms
which referencesNR_DYNIRQS, which is in 2.6.18, but not in the pvops kernel.Watching
/proc/interrupts, the domain irqs seem to be getting allocated from 248 downward until they hit some other limit:
Yeah. They hit the nr_irqs_gsi and don't go below that.
Quoted 101 lines
...
64: 59104 xen-pirq-ioapic-level ioc089: 1 xen-dyn-event evtchn:xenconsoled 90: 1 xen-dyn-event evtchn:xenstored 91: 6 xen-dyn-event vif36.0 92: 140 xen-dyn-event blkif-backend 93: 97 xen-dyn-event evtchn:xenconsoled 94: 139 xen-dyn-event evtchn:xenstored 95: 7 xen-dyn-event vif35.0 96: 301 xen-dyn-event blkif-backend 97: 261 xen-dyn-event evtchn:xenconsoled 98: 145 xen-dyn-event evtchn:xenstored 99: 7 xen-dyn-event vif34.0...
Perhaps the xen irqs are getting allocated out of thenr_irqspool, while they could be allocated from theNR_IRQSpool?-John
Quoted 67 lines · Keir Fraser
I think
nr_irqsis specifiable on the command line on newer kernels. You may be able to do nr_irqs=65536 as a kernel boot parameter, or something like that, without needing to rebuild the kernel.-- Keir
Quoted 47 lines · Yuvraj Agarwal
Actually, I did identify the problem (don’t know the fix) at least from the console logs. Its related to running out of nr_irq's (attached JPG for the console log).
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Keir Fraser
Sent: Tuesday, April 27, 2010 5:44 PM
To: Yuvraj Agarwal; [email protected]
Subject: Re: [Xen-devel] XEN 4.0 + 2.6.31.13 pvops kernel : system crashes on starting 155th domUQuoted 2 lines · Yuvraj Agarwal
Attached is the output of
/var/log/daemon.logand/var/log/xen/xend.log,but
Quoted 3 lines
as far as we can see we don¹t quite know what might be going causing the system to crash (no console access anymore and system becomes
unresponsive and
Quoted 3 lines
needs to be power-cycled). I have pasted only the relevant bits of information (the last domU that did successfully start and the next one
that
Quoted 2 lines
failed). It may be the case that all the log messages weren¹t flushed
before
Quoted 4 lines
the system crashedŠ
Does anyone know where this limit of 155 domU is coming from and how we
can
Quoted 2 lines
fix/increase it?
Get a serial line on a test box, and capture Xen logging output on it. You can both see if any crash messages come from Xen when the 155th domain is created, and also try the serial debug keys (e.g., try 'h' to get help to start with) to see whether Xen itself is still alive.
Quoted 9 lines
-- Keir
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develQuoted 5 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 21 lines · Konrad Rzeszutek Wilk
Quoted 16 lines · John McCullough
I did a little testing.
With no kernel option:
# dmesg | grep -i nr_irqs [ 0.000000] nr_irqs_gsi: 88 [ 0.000000] NR_IRQS:4352 nr_irqs:256w/nr_irqs=65536:
# dmesg | grep -i nr_irqs [ 0.000000] Command line: root=/dev/sda1 ro quiet console=hvc0 nr_irqs=65536 [ 0.000000] nr_irqs_gsi: 88 [ 0.000000] Kernel command line: root=/dev/sda1 ro quiet console=hvc0 nr_irqs=65536 [ 0.000000] NR_IRQS:4352 nr_irqs:256Quoted 3 lines
tweaking the
NR_IRQSmacro in the kernel will change theNR_IRQSoutput, but unfortunately that doesn't changenr_irqsand I run into the same limit (36 domus on a less-beefy dual core machine).
Quoted 6 lines
If you have
CONFIG_SPARSE_IRQdefined in your .config, it gets overwritten by some code that figures out how many IRQs you need based on your CPU count.So can you change
NR_VECTORSinarch/x86/include/asm/irq_vectors.hto a higher value and see what happens?
Jeremy applied a patch of mine which added some extra space for dynamic IRQs at the start of march:
commit 6d4a9168207ade237098a401270959ecc0bdd1e9
Author: Ian Campbell <[email protected]>
Date: Mon Mar 1 11:21:15 2010 +0000
xen: allow some overhead in IRQ space for dynamic IRQs
If you have this patch then you can edit NR_DYNAMIC_IRQS in arch/x86/include/asm/irq_vectors.h to increase the number of extra IRQs.
Ian.
Quoted 118 lines
Quoted 9 lines
I did find this:
http://blogs.sun.com/fvdl/entry/a_million_vms
which referencesNR_DYNIRQS, which is in 2.6.18, but not in the pvops kernel.Watching
/proc/interrupts, the domain irqs seem to be getting allocated from 248 downward until they hit some other limit:Yeah. They hit the
nr_irqs_gsiand don't go below that.Quoted 97 lines
...
64: 59104 xen-pirq-ioapic-level ioc089: 1 xen-dyn-event evtchn:xenconsoled 90: 1 xen-dyn-event evtchn:xenstored 91: 6 xen-dyn-event vif36.0 92: 140 xen-dyn-event blkif-backend 93: 97 xen-dyn-event evtchn:xenconsoled 94: 139 xen-dyn-event evtchn:xenstored 95: 7 xen-dyn-event vif35.0 96: 301 xen-dyn-event blkif-backend 97: 261 xen-dyn-event evtchn:xenconsoled 98: 145 xen-dyn-event evtchn:xenstored 99: 7 xen-dyn-event vif34.0...
Perhaps the xen irqs are getting allocated out of thenr_irqspool, while they could be allocated from theNR_IRQSpool?-John
Quoted 67 lines · Keir Fraser
I think
nr_irqsis specifiable on the command line on newer kernels. You may be able to do nr_irqs=65536 as a kernel boot parameter, or something like that, without needing to rebuild the kernel.-- Keir
Quoted 47 lines · Yuvraj Agarwal
Actually, I did identify the problem (don’t know the fix) at least from the console logs. Its related to running out of nr_irq's (attached JPG for the console log).
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Keir Fraser
Sent: Tuesday, April 27, 2010 5:44 PM
To: Yuvraj Agarwal; [email protected]
Subject: Re: [Xen-devel] XEN 4.0 + 2.6.31.13 pvops kernel : system crashes on starting 155th domUQuoted 2 lines · Yuvraj Agarwal
Attached is the output of
/var/log/daemon.logand/var/log/xen/xend.log,but
Quoted 3 lines
as far as we can see we don¹t quite know what might be going causing the system to crash (no console access anymore and system becomes
unresponsive and
Quoted 3 lines
needs to be power-cycled). I have pasted only the relevant bits of information (the last domU that did successfully start and the next one
that
Quoted 2 lines
failed). It may be the case that all the log messages weren¹t flushed
before
Quoted 4 lines
the system crashedŠ
Does anyone know where this limit of 155 domU is coming from and how we
can
Quoted 2 lines
fix/increase it?
Get a serial line on a test box, and capture Xen logging output on it. You can both see if any crash messages come from Xen when the 155th domain is created, and also try the serial debug keys (e.g., try 'h' to get help to start with) to see whether Xen itself is still alive.
Quoted 9 lines
-- Keir
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develQuoted 5 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develQuoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 16 lines · John McCullough
I did a little testing.
With no kernel option:
# dmesg | grep -i nr_irqs [ 0.000000] nr_irqs_gsi: 88 [ 0.000000] NR_IRQS:4352 nr_irqs:256w/nr_irqs=65536:
# dmesg | grep -i nr_irqs [ 0.000000] Command line: root=/dev/sda1 ro quiet console=hvc0 nr_irqs=65536 [ 0.000000] nr_irqs_gsi: 88 [ 0.000000] Kernel command line: root=/dev/sda1 ro quiet console=hvc0 nr_irqs=65536 [ 0.000000] NR_IRQS:4352 nr_irqs:256
Quoted 3 lines
tweaking the
NR_IRQSmacro in the kernel will change theNR_IRQSoutput, but unfortunately that doesn't changenr_irqsand I run into the same limit (36 domus on a less-beefy dual core machine).
Yes, NR_IRQS is the hard limit (for any statically defined irq arrays, which are deprecated now), but nr_irqs is the amount it decides to actually allocate for dynamic irq arrays, and so represents the actual runtime limit.
nr_irqs is computed in arch_probe_nr_irqs(), and its a function of the number of cpus, with a bump to deal with dynamically allocated MSI interrupts. I should probably add something to specifically add more if we're running under Xen, at least as a workaround (ultimately the plan is to make all irqs completely dynamically allocated so there is no hard limit).
Quoted 5 lines
I did find this:
http://blogs.sun.com/fvdl/entry/a_million_vms
which referencesNR_DYNIRQS, which is in 2.6.18, but not in the pvops kernel.
I'm pretty sure that's referring to Solaris dom0, so the fact that there's a similarly named symbol is coincidence. (But the root problem is the same.)
J
Quoted 11 lines · Ian Campbell
Jeremy applied a patch of mine which added some extra space for dynamic IRQs at the start of march:
commit6d4a9168207ade237098a401270959ecc0bdd1e9
Author: Ian Campbell <[email protected]>
Date: Mon Mar 1 11:21:15 2010 +0000xen: allow some overhead in IRQ space for dynamic IRQs
If you have this patch then you can edit
NR_DYNAMIC_IRQSinarch/x86/include/asm/irq_vectors.hto increase the number of extra IRQs.
That's only present in 2.6.32, not .31. But it would be easy to backport.
J
I tried making the change in linux-2.6-pvops.git/arch/x86/include/asm/irq_vectors.h
It was:
#define NR_VECTORS 256
I changed it to
#define NR_VECTORS 1024
I still get the same number of nr_irqs (dmesg | grep -i nr_irq) before and after the change.
[ 0.000000] nr_irqs_gsi: 48 [ 0.500076] NR_IRQS:5120 nr_irqs:944
Also, as earlier it crashes on the same number of domU (154). I didn’t mention earlier, this a dual core Nehalem machine -- 2 (sockets) * 4 cores per CPU * 2 (hyperthreading)
--Yuvraj
-----Original Message-----
From: Konrad Rzeszutek Wilk [mailto:[email protected]]
Sent: Wednesday, April 28, 2010 7:05 AM
To: John McCullough
Cc: Keir Fraser; [email protected]; Yuvraj Agarwal
Subject: Re: [Xen-devel] XEN 4.0 + 2.6.31.13 pvops kernel : system crashes on starting 155th domU
Quoted 16 lines · John McCullough
I did a little testing.
With no kernel option:
# dmesg | grep -i nr_irqs [ 0.000000] nr_irqs_gsi: 88 [ 0.000000] NR_IRQS:4352 nr_irqs:256w/nr_irqs=65536:
# dmesg | grep -i nr_irqs [ 0.000000] Command line: root=/dev/sda1 ro quiet console=hvc0 nr_irqs=65536 [ 0.000000] nr_irqs_gsi: 88 [ 0.000000] Kernel command line: root=/dev/sda1 ro quiet console=hvc0 nr_irqs=65536 [ 0.000000] NR_IRQS:4352 nr_irqs:256
Quoted 3 lines
tweaking the
NR_IRQSmacro in the kernel will change theNR_IRQSoutput, but unfortunately that doesn't changenr_irqsand I run into the same limit (36 domus on a less-beefy dual core machine).
If you have CONFIG_SPARSE_IRQ defined in your .config, it gets overwritten by some code that figures out how many IRQs you need based on your CPU count.
So can you change NR_VECTORS in arch/x86/include/asm/irq_vectors.h to a higher value and see what happens?
Quoted 8 lines
I did find this:
http://blogs.sun.com/fvdl/entry/a_million_vms
which referencesNR_DYNIRQS, which is in 2.6.18, but not in the pvops kernel.Watching
/proc/interrupts, the domain irqs seem to be getting allocated from 248 downward until they hit some other limit:
Yeah. They hit the nr_irqs_gsi and don't go below that.
Quoted 108 lines
...
64: 59104 xen-pirq-ioapic-level ioc089: 1 xen-dyn-event evtchn:xenconsoled 90: 1 xen-dyn-event evtchn:xenstored 91: 6 xen-dyn-event vif36.0 92: 140 xen-dyn-event blkif-backend 93: 97 xen-dyn-event evtchn:xenconsoled 94: 139 xen-dyn-event evtchn:xenstored 95: 7 xen-dyn-event vif35.0 96: 301 xen-dyn-event blkif-backend 97: 261 xen-dyn-event evtchn:xenconsoled 98: 145 xen-dyn-event evtchn:xenstored 99: 7 xen-dyn-event vif34.0...
Perhaps the xen irqs are getting allocated out of thenr_irqspool, while they could be allocated from theNR_IRQSpool?-John
Quoted 74 lines · Keir Fraser
I think
nr_irqsis specifiable on the command line on newer kernels. You may
be able to do nr_irqs=65536 as a kernel boot parameter, or something like that, without needing to rebuild the kernel.-- Keir
Quoted 53 lines · Yuvraj Agarwal
Actually, I did identify the problem (don’t know the fix) at least from the console logs. Its related to running out of nr_irq's (attached JPG for the console log).
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Keir Fraser
Sent: Tuesday, April 27, 2010 5:44 PM
To: Yuvraj Agarwal; [email protected]
Subject: Re: [Xen-devel] XEN 4.0 + 2.6.31.13 pvops kernel : system crashes
on starting 155th domUQuoted 3 lines · Yuvraj Agarwal
Attached is the output of
/var/log/daemon.logand/var/log/xen/xend.log,but
Quoted 4 lines
as far as we can see we don¹t quite know what might be going causing the
system to crash (no console access anymore and system becomesunresponsive and
Quoted 3 lines
needs to be power-cycled). I have pasted only the relevant bits of information (the last domU that did successfully start and the next one
that
Quoted 2 lines
failed). It may be the case that all the log messages weren¹t flushed
before
Quoted 4 lines
the system crashedŠ
Does anyone know where this limit of 155 domU is coming from and how we
can
Quoted 2 lines
fix/increase it?
Get a serial line on a test box, and capture Xen logging output on it. You
can both see if any crash messages come from Xen when the 155th domain is
created, and also try the serial debug keys (e.g., try 'h' to get help to
start with) to see whether Xen itself is still alive.Quoted 9 lines
-- Keir
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develQuoted 5 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 8 lines · Yuvraj Agarwal
I tried making the change in
linux-2.6-pvops.git/arch/x86/include/asm/irq_vectors.hIt was:
#defineNR_VECTORS256
I changed it to
#defineNR_VECTORS1024
Quoted 5 lines
I still get the same number of
nr_irqs(dmesg | grep -inr_irq) before and after the change.[ 0.000000] nr_irqs_gsi: 48 [ 0.500076] NR_IRQS:5120 nr_irqs:944
That looks to be different from the previous bootup:
[ 0.000000] NR_IRQS:4352 nr_irqs:256
?
Quoted 4 lines
Also, as earlier it crashes on the same number of domU (154). I didn’t mention earlier, this a dual core Nehalem machine -- 2 (sockets) * 4 cores per CPU * 2 (hyperthreading)
Lots of logical CPUs, weird that your nr_irqs initially was that much lower.
Anyhow, you mentioned that you narrowed it down to not being enough IRQs
- how did you find that out? Was there an kernel message when you started the 155th guest?
Oh, also you say that the /proc/interrupts showed the number descending from 255 down to 89. With this it should have started at 944 and gone down to 49? Which roughly means 175 guests?
Quoted 3 lines
[ 0.000000] nr_irqs_gsi: 48 [ 0.500076] NR_IRQS:5120 nr_irqs:944
That looks to be different from the previous bootup:
[ 0.000000] NR_IRQS:4352 nr_irqs:256
Quoted 10 lines
Quoted 8 lines
YA: I think you may have mixed up the post by John. He has a different dual core machine
and he is trying the same edits as me. He was gettingnr_irqsas 256 while I was getting 944.[ 0.000000] nr_irqs_gsi: 48 [ 0.500270] NR_IRQS:5120 nr_irqs:944Also it did not matter if I changed the VECTORS to 1024 instead of the original 256.
Quoted 4 lines
Also, as earlier it crashes on the same number of domU (154). I didn’t mention earlier, this a dual core Nehalem machine -- 2 (sockets) * 4 cores
per CPU * 2 (hyperthreading)
Lots of logical CPUs, weird that your nr_irqs initially was that much lower.
Quoted 3 lines
Quoted 3 lines
No, as mentioned above, my machine has the larger number of CPUs while John McCullough
machine has lesser number of CPUs.
Anyhow, you mentioned that you narrowed it down to not being enough IRQs
- how did you find that out? Was there an kernel message when you started the 155th guest?
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
yes, as I mentioned in an email, right after I started up the 154th guest there was
a log message printed out as below:
Kernel Panic - not syncing: No available IRQs to bind to: increasenr_irqs!
Oh, also you say that the /proc/interrupts showed the number descending from 255 down to 89. With this it should have started at 944 and gone down to 49? Which roughly means 175 guests?
Quoted 6 lines
Quoted 6 lines
Yes, the interrupts started counting down from 944 as I increased the number of domUs;
I am attaching the/proc/interruptslog file for three cases (no domU, after 1 domU,
and then after 150 domU). The machine crashed after the 154th domU was started.
Thank you all for helping out to debug this. As I mentioned at the XEN summit, once I do fix these issues I’d really like to create wiki stub for any one else trying to do this. It looks like in the original 2.6.18 kernel people did indeed try this, but I guess some of the edits/changes didn’t make it to the 2.6.31 pvops branch....
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel