Skip to content

Instantly share code, notes, and snippets.

@RobertLowe
Created May 12, 2011 00:48
Show Gist options
  • Save RobertLowe/623aa20f9de9b7a5ae44 to your computer and use it in GitHub Desktop.
Save RobertLowe/623aa20f9de9b7a5ae44 to your computer and use it in GitHub Desktop.
ec2 lowlatency natty
Can't get box to boot low latency kernel, what am I doing wrong here guys?
This AMI: Ubuntu 11.04 Natty
---------------------------------------------------------------------------
EBS boot Canonical ubuntu@ ami-1aad5273
This Kernel: Low Latency Kernel
-------------------------------------------------------------------------
https://launchpad.net/~abogani/+archive/ppa?field.series_filter=natty
SSH in and run:
`sudo add-apt-repository ppa:abogani/ppa`
`sudo apt-get update`
`sudo apt-get install linux-lowlatency`
`sudo nano /boot/grub/menu.lst`
Add entry:
title Ubuntu 11.04, kernel 2.6.38-8-lowlatency
root (hd0)
kernel /boot/vmlinuz-2.6.38-8-lowlatency root=LABEL=uec-rootfs ro console=hvc0
initrd /boot/initrd.img-2.6.38-8-lowlatency
`sudo reboot`
I've also tried
* root=/dev/sda1
* root=UUID=xxxx-xxxx-xxxx-xxxx
* root=/dev/xvda1
From ec2 `Get System Log`:
Xen Minimal OS!
start_info: 0xac4000(VA)
nr_pages: 0x26700
shared_inf: 0xdf124000(MA)
pt_base: 0xac7000(VA)
nr_pt_frames: 0x9
mfn_list: 0x990000(VA)
mod_start: 0x0(VA)
mod_len: 0
flags: 0x0
cmd_line: root=/dev/sda1 ro 4
stack: 0x94f860-0x96f860
MM: Init
_text: 0x0(VA)
_etext: 0x5ff6d(VA)
_erodata: 0x78000(VA)
_edata: 0x80b00(VA)
stack start: 0x94f860(VA)
_end: 0x98fe68(VA)
start_pfn: ad3
max_pfn: 26700
Mapping memory range 0xc00000 - 0x26700000
setting 0x0-0x78000 readonly
skipped 0x1000
MM: Initialise page allocator for c01000(c01000)-26700000(26700000)
MM: done
Demand map pfns at 26701000-2026701000.
Heap resides at 2026702000-4026702000.
Initialising timer interface
Initialising console ... done.
gnttab_table mapped at 0x26701000.
Initialising scheduler
Thread "Idle": pointer: 0x2026702010, stack: 0x26640000
Initialising xenbus
Thread "xenstore": pointer: 0x20267027c0, stack: 0x26650000
Dummy main: start_info=0x96f960
Thread "main": pointer: 0x2026702f70, stack: 0x26660000
"main" "root=/dev/sda1" "ro" "4"
vbd 2049 is hd0
******************* BLKFRONT for device/vbd/2049 **********
backend at /local/domain/0/backend/vbd/417/2049
Failed to read /local/domain/0/backend/vbd/417/2049/feature-barrier.
Failed to read /local/domain/0/backend/vbd/417/2049/feature-flush-cache.
16777216 sectors of 512 bytes
**************************
[H
[J Booting 'Ubuntu 11.04, kernel 2.6.38-8-lowlatency'
root (hd0)
Filesystem type is ext2fs, using whole disk
kernel /boot/vmlinuz-2.6.38-8-lowlatency root=LABEL=uec-rootfs ro console=hvc0
initrd /boot/initrd.img-2.6.38-8-lowlatency
close blk: backend at /local/domain/0/backend/vbd/417/2049
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.38-8-lowlatency (buildd@osmium) (gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu3) ) #42~ppa2-Ubuntu SMP PREEMPT Mon Apr 11 07:01:53 UTC 2011 (Ubuntu 2.6.38-8.42~ppa2-lowlatency 2.6.38.2)
[ 0.000000] Command line: root=LABEL=uec-rootfs ro console=hvc0
[ 0.000000] ACPI in unprivileged domain disabled
[ 0.000000] released 0 pages of unused memory
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] Xen: 0000000000000000 - 00000000000a0000 (usable)
[ 0.000000] Xen: 00000000000a0000 - 0000000000100000 (reserved)
[ 0.000000] Xen: 0000000000100000 - 0000000026f00000 (usable)
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] DMI not present or invalid.
[ 0.000000] No AGP bridge found
[ 0.000000] last_pfn = 0x26f00 max_arch_pfn = 0x400000000
[ 0.000000] init_memory_mapping: 0000000000000000-0000000026f00000
[ 0.000000] RAMDISK: 01b4d000 - 03d53000
[ 0.000000] No NUMA configuration found
[ 0.000000] Faking a node at 0000000000000000-0000000026f00000
[ 0.000000] Initmem setup node 0 0000000000000000-0000000026f00000
[ 0.000000] NODE_DATA [00000000266fb000 - 00000000266fffff]
[ 0.000000] Zone PFN ranges:
[ 0.000000] DMA 0x00000010 -> 0x00001000
[ 0.000000] DMA32 0x00001000 -> 0x00100000
[ 0.000000] Normal empty
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] early_node_map[2] active PFN ranges
[ 0.000000] 0: 0x00000010 -> 0x000000a0
[ 0.000000] 0: 0x00000100 -> 0x00026f00
[ 0.000000] SFI: Simple Firmware Interface v0.81 http://simplefirmware.org
[ 0.000000] SMP: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.000000] No local APIC present
[ 0.000000] APIC: disable apic facility
[ 0.000000] APIC: switched to apic NOOP
[ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
[ 0.000000] Allocating PCI resources starting at 26f00000 (gap: 26f00000:d9100000)
[ 0.000000] Booting paravirtualized kernel on Xen
[ 0.000000] Xen version: 3.1.2-128.1.10.el5 (preserve-AD)
[ 0.000000] setup_percpu: NR_CPUS:256 nr_cpumask_bits:256 nr_cpu_ids:1 nr_node_ids:1
[ 0.000000] PERCPU: Embedded 28 pages/cpu @ffff8800266d2000 s83264 r8192 d23232 u114688
[ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 156913
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: root=LABEL=uec-rootfs ro console=hvc0
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Checking aperture...
[ 0.000000] No AGP bridge found
[ 0.000000] Memory: 572336k/637952k available (5862k kernel code, 448k absent, 65168k reserved, 2649k data, 920k init)
[ 0.000000] Preemptable hierarchical RCU implementation.
[ 0.000000] RCU-based detection of stalled CPUs is disabled.
[ 0.000000] Verbose stalled-CPUs detection is disabled.
[ 0.000000] NR_IRQS:16640 nr_irqs:256 16
[ 0.000000] Console: colour dummy device 80x25
[ 0.000000] console [tty0] enabled
[ 0.000000] console [hvc0] enabled
[ 0.000000] allocated 6553600 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[ 0.000000] installing Xen timer for CPU 0
[ 0.000000] Detected 2659.998 MHz processor.
[ 0.000999] Calibrating delay loop (skipped), value calculated using timer frequency.. 5319.99 BogoMIPS (lpj=2659998)
[ 0.000999] pid_max: default: 32768 minimum: 301
[ 0.000999] Security Framework initialized
[ 0.000999] AppArmor: AppArmor initialized
[ 0.000999] Yama: becoming mindful.
[ 0.000999] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000999] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.001234] Mount-cache hash table entries: 256
[ 0.001412] Initializing cgroup subsys ns
[ 0.001421] ns_cgroup deprecated: consider using the 'clone_children' flag without the ns_cgroup.
[ 0.001432] Initializing cgroup subsys cpuacct
[ 0.001441] Initializing cgroup subsys memory
[ 0.001460] Initializing cgroup subsys devices
[ 0.001467] Initializing cgroup subsys freezer
[ 0.001473] Initializing cgroup subsys net_cls
[ 0.001479] Initializing cgroup subsys blkio
[ 0.001558] CPU: Unsupported number of siblings 4
[ 0.001606] SMP alternatives: switching to UP code
[ 0.002022] Freeing SMP alternatives: 20k freed
[ 0.002054] ftrace: allocating 23886 entries in 94 pages
[ 0.003076] cpu 0 spinlock event irq 254
[ 0.003104] Performance Events: PEBS fmt0+, Core2 events,
[ 0.003117] no APIC, boot with the "lapic" boot parameter to force-enable it.
[ 0.003125] no hardware sampling interrupt available.
[ 0.003142] Broken PMU hardware detected, using software events only.
[ 0.006109] Brought up 1 CPUs
[ 0.006217] devtmpfs: initialized
[ 0.007074] Grant table initialized
[ 0.007140] print_constraints: dummy:
[ 0.027103] Time: 165:165:165 Date: 165/165/65
[ 0.027160] NET: Registered protocol family 16
[ 0.027577] PCI: setting up Xen PCI frontend stub
[ 0.028704] bio: create slab <bio-0> at 0
[ 0.028832] ACPI: Interpreter disabled.
[ 0.029105] xen_balloon: Initialising balloon driver.
[ 0.029127] last_pfn = 0x26f00 max_arch_pfn = 0x400000000
[ 0.029280] vgaarb: loaded
[ 0.029532] SCSI subsystem initialized
[ 0.029653] usbcore: registered new interface driver usbfs
[ 0.029673] usbcore: registered new interface driver hub
[ 0.029720] usbcore: registered new device driver usb
[ 0.029836] PCI: System does not support PCI
[ 0.029843] PCI: System does not support PCI
[ 0.029966] NetLabel: Initializing
[ 0.029973] NetLabel: domain hash size = 128
[ 0.029978] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.029997] NetLabel: unlabeled traffic allowed by default
[ 0.030020] Switching to clocksource xen
[ 0.039970] AppArmor: AppArmor Filesystem Enabled
[ 0.039997] pnp: PnP ACPI: disabled
[ 0.041967] NET: Registered protocol family 2
[ 0.042105] IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
[ 0.042694] TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
[ 0.043602] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[ 0.043985] TCP: Hash tables configured (established 131072 bind 65536)
[ 0.043993] TCP reno registered
[ 0.153726] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.153749] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.153906] NET: Registered protocol family 1
[ 0.154088] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 0.154331] audit: initializing netlink socket (disabled)
[ 0.154350] type=2000 audit(1305160953.524:1): initialized
[ 0.158144] Trying to unpack rootfs image as initramfs...
[ 0.172092] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.176285] VFS: Disk quotas dquot_6.5.2
[ 0.176553] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.181127] fuse init (API version 7.16)
[ 0.181247] msgmni has been set to 1117
[ 0.185188] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 0.189060] io scheduler noop registered
[ 0.189187] io scheduler deadline registered
[ 0.189244] io scheduler cfq registered (default)
[ 0.189576] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 0.189631] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[ 0.190155] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[ 0.222393] Freeing initrd memory: 34840k freed
[ 0.320208] Linux agpgart interface v0.103
[ 0.321499] brd: module loaded
[ 0.322122] loop: module loaded
[ 0.322229] i2c-core: driver [adp5520] using legacy suspend method
[ 0.322236] i2c-core: driver [adp5520] using legacy resume method
[ 0.322696] Fixed MDIO Bus: probed
[ 0.322731] PPP generic driver version 2.4.2
[ 0.322776] tun: Universal TUN/TAP device driver, 1.6
[ 0.322783] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 0.322878] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.322899] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.322914] uhci_hcd: USB Universal Host Controller Interface driver
[ 0.322965] i8042: PNP: No PS/2 controller found. Probing ports directly.
[ 0.323003] i8042: No controller found
[ 0.323863] mousedev: PS/2 mouse device common for all mice
[ 0.323980] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[ 0.324031] rtc_cmos: probe of rtc_cmos failed with error -38
[ 0.324085] device-mapper: uevent: version 1.0.3
[ 0.324139] device-mapper: ioctl: 4.19.1-ioctl (2011-01-07) initialised: dm-devel@redhat.com
[ 0.324226] device-mapper: multipath: version 1.2.0 loaded
[ 0.324233] device-mapper: multipath round-robin: version 1.0.0 loaded
[ 0.324319] cpuidle: using governor ladder
[ 0.324546] TCP cubic registered
[ 0.324591] NET: Registered protocol family 10
[ 0.325126] NET: Registered protocol family 17
[ 0.325146] Registering the dns_resolver key type
[ 0.325274] registered taskstats version 1
[ 0.325295] Magic number: 1:252:3141
[ 0.325326] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 0.326003] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 0.326003] EDD information not available.
[ 0.354177] Freeing unused kernel memory: 920k freed
Loading, please wait...
Begin: Loading essential drivers ... done.
[ 0.394904] <30>udev[57]: starting version 167
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/disk/by-label/uec-rootfs does not exist. Dropping to a shell!
BusyBox v1.17.1 (Ubuntu 1:1.17.1-10ubuntu1) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs)
[6n
-----------------------------------------------------------------------------------
Suggestion from ##aws
[9:14pm] Viral: I would be in someones debt if they could help me get a low latency kernel running on ec2 : https://gist.github.com/623aa20f9de9b7a5ae44
[9:16pm] erichammond: Viral: If that's Ubuntu Natty, then you might need to use /dev/xvda1 instead of /dev/sda1
[9:18pm] erichammond: or label your root file system as "uec-rootfs"
[9:25pm] Viral: @erichammond no luck w/ /dev/xvda1 and and the root file system is labeled uec-rootfs according to `cat /etc/fstab`
[9:32pm] erichammond: /etc/fstab is telling it to mount the file system that has the "uec-rootfs" label.
[9:32pm] erichammond: Labeling the file system is done when you mkfs the file system (see the -L option in most of those commands) or with a command like e2label or xfs_admin.
[9:32pm] erichammond: However, since you are simply upgrading an existing file system in place, the label should remain intact.
[9:33pm] erichammond: I'm not sure why it's not finding it. Perhaps your new kernel/modules are missing something to generate /dev/disk/by-label/*
[9:34pm] erichammond: You might try over on #ubuntu-cloud where the Ubuntu EC2 experts reside.
[9:53pm] Viral: @erichammond thanks a bunch, you've helped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment