Jeff Dike wrote: >>It seems that UML does not run properly when given too much memory. >>After a few tries, there seem to be a limit somewhere below 1.5GB >>memory. The actual limit appears to be moving with some parameters >>(disks, root, initrd, ...). >>With my few tests: >> size=1408M seems to work fine >> size=1536M fails >> >>Is it something known? Is there a known maximum safe value? > > > So what happens? I can get a 3G UML booted fine here.
Here is what I get (a soft lockup), trying to run with 2GB ram, and booting on an initrd with the Debian installer: Checking that ptrace can change system call numbers...OK Checking syscall emulation patch for ptrace...OK Checking advanced syscall emulation patch for ptrace...OK Checking for tmpfs mount on /dev/shm...OK Checking PROT_EXEC mmap in /dev/shm/...OK Checking for the skas3 patch in the host: - /proc/mm...not found - PTRACE_FAULTINFO...not found - PTRACE_LDT...not found UML running in SKAS0 mode Kernel virtual memory size shrunk to 930086912 bytes Checking that ptrace can change system call numbers...OK Checking syscall emulation patch for ptrace...OK Checking advanced syscall emulation patch for ptrace...OK Linux version 2.6.18 ([EMAIL PROTECTED]) (gcc version 4.1.2 20061028 (prerelease) (Debian 4.1.1-19)) #2 Thu Nov 9 19:27:34 CET 2006 Built 1 zonelists. Total pages: 524288 Kernel command line: mem=2048M root=/dev/ram rw ramdisk=20480 initrd=/root/uml-initrd.gz con=port:10004 con0=fd:0,fd:1 eth0=tuntap,tap_foobar_0,fe:58:d4:9b:bf:2c ubd0=foobar PID hash table entries: 4096 (order: 12, 16384 bytes) Dentry cache hash table entries: 262144 (order: 8, 1048576 bytes) Inode-cache hash table entries: 131072 (order: 7, 524288 bytes) Memory: 2055552k available Mount-cache hash table entries: 512 Checking for host processor cmov support...Yes Checking for host processor xmm support...No Checking that host ptys support output SIGIO...Yes Checking that host ptys support SIGIO on close...No, enabling workaround checking if image is initramfs... it is Freeing initrd memory: 4227k freed Using 2.6 host AIO NET: Registered protocol family 16 NET: Registered protocol family 2 IP route cache hash table entries: 65536 (order: 6, 262144 bytes) TCP established hash table entries: 262144 (order: 8, 1048576 bytes) TCP bind hash table entries: 65536 (order: 6, 262144 bytes) TCP: Hash tables configured (established 262144 bind 65536) TCP reno registered Checking host MADV_REMOVE support...OK mconsole (version 2) initialized on /home/foobar/.uml/foobar/mconsole ubd: Synchronous mode Netdevice 0 (fe:58:d4:9b:bf:2c) : TUN/TAP backend - Host TLS support detected Detected host type: i386 VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) Initializing Cryptographic API io scheduler noop registered io scheduler anticipatory registered (default) io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized: 16 RAM disks of 20480K size 1024 blocksize loop: loaded (max 8 devices) nbd: registered device at major 43 device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: [EMAIL PROTECTED] IPv4 over IPv4 tunneling driver GRE over IPv4 tunneling driver TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 Initialized stdio console driver Console initialized on /dev/tty0 Initializing software serial port version 1 ubda: unknown partition table BUG: soft lockup detected on CPU#0! 087cf674: [<0805d048>] dump_stack+0x1c/0x20 087cf68c: [<0808eae7>] softlockup_tick+0x77/0x7e 087cf6a0: [<0807d4db>] run_local_timers+0x12/0x14 087cf6a8: [<0807d31a>] update_process_times+0x3d/0x66 087cf6bc: [<0805d446>] timer_handler+0x2e/0x50 087cf6d4: [<0806dd5a>] sig_handler_common_skas+0xc6/0xec 087cf6fc: [<0806aab3>] real_alarm_handler+0x42/0x49 087cf710: [<0806ad7b>] alarm_handler+0x3b/0x48 087cf71c: [<b7f07420>] 0xb7f07420 087cfa38: [<080cf013>] load_elf_binary+0x8a2/0xac6 087cfac8: [<080b3306>] search_binary_handler+0x5e/0x195 087cfaec: [<080cdd96>] load_script+0x186/0x198 087cfb94: [<080b3306>] search_binary_handler+0x5e/0x195 087cfbb8: [<080b3587>] do_execve+0x14a/0x1cd 087cfbd8: [<0805aa55>] execve1+0x2a/0x54 087cfbfc: [<0805aa94>] um_execve+0x15/0x41 087cfc18: [<0805a3bc>] run_init_process+0x36/0x51 087cfc38: [<0805a486>] init+0xaf/0x119 087cfc48: [<08069f6e>] run_kernel_thread+0x42/0x4a 087cfcf8: [<0805eaf7>] new_thread_handler+0x81/0xab 087cfd1c: [<b7f07420>] 0xb7f07420 With mem=1024, everything works fine. Cheers, Nicolas ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user