[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#406007: installation-report: RC1 installer (NSLU2) does not use swap before partitioning



reassign partman-base
retitle problems with activating swap before partitioning
thanks

* R. Clobus <rclobus@bigfoot.com> [2007-01-07 22:28]:
> I've partitioned a 1GB pendrive:
> /dev/sda1 768MB ext3
> /dev/sda2 256MB swap
> 
> When the sda1 partition is formatted, the installer quits, because mkfs.ext3 segfaulted because
> it ran out of memory.
> I restarted the installer after I first had activated the swap partition, and then all went well.
> 
> Could it be possible (especially in low-memory mode) to initialize and use the swap partition first,
> and then try to run the remainder of the installer?

Actually, this is what the installer does, are or least is supposed to
do.  Kevin Price ran into this problem too recently and I'm not sure
how to interpret his finding.  Maybe someone more familiar with
partman (or the kernel?) can comment.

Here is what Kevin found:

| >> I think it should have formatted and activated swap first, and then
| >> afterwards start formatting the ext3 partitions. That would avoid the error.
| >
| > That's what the installer does.  It partitions the disk, formats and
| > activates swap and then formats the other partitions.
| 
| That surprises me. On a closer look into the log, you're right.
| 
| From a user's POV, the first mkfs-ext3 attempt failed, but just starting
| it again worked out ok.
| 
| Now from looking into the log, it looks strange: It adds swap, then
| attempts to format ext3, then comes OOM and kills mkfs.ext3. Then comes
| the interesting part: It seems to add swap again. That time mkfs.ext3
| runs OK. So maybe the first time adding swap, the swap gets disbled
| immediately after, triggering OOM?
| 
| See the attached log excerpt.

-- 
Martin Michlmayr
http://www.cyrius.com/
Aug 20 01:02:34 anna[4903]: DEBUG: retrieving partman-lvm 63
Aug 20 01:02:38 partman: Insufficient free memory to load crypto support
Aug 20 01:02:40 kernel: [42950187.910000] device-mapper: uevent: version 1.0.3
Aug 20 01:02:40 kernel: [42950187.920000] device-mapper: ioctl: 4.13.0-ioctl (2007-10-18) initialised: dm-devel@redhat.com
Aug 20 01:02:41 partman:   No matching physical volumes found
Aug 20 01:02:41 partman:   Reading all physical volumes.  This may take a while...
Aug 20 01:04:26 udevd-event[6736]: import_file_into_env: can't open 'fstab_import --root=/dev sda1 disk/by-id/usb-WD_My_Book_57442D574341553430373636383038-0:0-part1 disk/by-path/pci-0000:00:01.2-usb-0:1:1.0-scsi-0:0:0:0-part1 mapper/': No such file o
Aug 20 01:04:28 udevd-event[6880]: import_file_into_env: can't open 'fstab_import --root=/dev sda1 disk/by-id/usb-WD_My_Book_57442D574341553430373636383038-0:0-part1 disk/by-path/pci-0000:00:01.2-usb-0:1:1.0-scsi-0:0:0:0-part1 mapper/': No such file o
Aug 20 01:04:29 net/hw-detect.hotplug: Detected hotpluggable network interface lo
Aug 20 01:04:29 net/hw-detect.hotplug: Detected hotpluggable network interface eth0
Aug 20 01:04:31 kernel: [42950299.170000] Adding 248968k swap on /dev/sda5.  Priority:-1 extents:1 across:248968k
Aug 20 01:04:35 partman: mke2fs 1.41.0 (10-Jul-2008)
Aug 20 01:04:50 kernel: [42950317.650000] mkfs.ext3 invoked oom-killer: gfp_mask=0x1200d2, order=0, oomkilladj=0
Aug 20 01:04:50 kernel: [42950317.650000] [<c0029f74>] (dump_stack+0x0/0x14) from [<c0076b8c>] (oom_kill_process+0x5c/0x1b0)
Aug 20 01:04:50 kernel: [42950317.650000] [<c0076b30>] (oom_kill_process+0x0/0x1b0) from [<c0077020>] (out_of_memory+0x198/0x1e8)
Aug 20 01:04:50 kernel: [42950317.650000] [<c0076e88>] (out_of_memory+0x0/0x1e8) from [<c0079644>] (__alloc_pages_internal+0x328/0x3d8)
Aug 20 01:04:50 kernel: [42950317.650000] [<c007931c>] (__alloc_pages_internal+0x0/0x3d8) from [<c007971c>] (__alloc_pages+0x14/0x18)
Aug 20 01:04:50 kernel: [42950317.650000] [<c0079708>] (__alloc_pages+0x0/0x18) from [<c008bc58>] (read_swap_cache_async+0x48/0x100)
Aug 20 01:04:50 kernel: [42950317.650000] [<c008bc10>] (read_swap_cache_async+0x0/0x100) from [<c008bd4c>] (swapin_readahead+0x3c/0x94)
Aug 20 01:04:50 kernel: [42950317.650000]  r8:4196d000 r7:c1f1d4f0 r6:00000000 r5:00001c18 r4:00001c10
Aug 20 01:04:50 kernel: [42950317.650000] [<c008bd10>] (swapin_readahead+0x0/0x94) from [<c008257c>] (handle_mm_fault+0x310/0x628)
Aug 20 01:04:50 kernel: [42950317.650000] [<c008226c>] (handle_mm_fault+0x0/0x628) from [<c002c568>] (do_page_fault+0xf4/0x234)
Aug 20 01:04:50 kernel: [42950317.650000] [<c002c474>] (do_page_fault+0x0/0x234) from [<c00251f0>] (do_DataAbort+0x3c/0xa0)
Aug 20 01:04:50 kernel: [42950317.650000] [<c00251b4>] (do_DataAbort+0x0/0xa0) from [<c0025a20>] (ret_from_exception+0x0/0x10)
Aug 20 01:04:50 kernel: [42950317.650000] Exception stack(0xc19d9fb0 to 0xc19d9ff8)
Aug 20 01:04:50 kernel: [42950317.650000] 9fa0:                                     0bdb0000 401b7008 0001c138 0e8c24df 
Aug 20 01:04:50 kernel: [42950317.650000] 9fc0: 00000001 0bdb0000 0001c138 00000001 0001cd50 0001c138 00000000 0bdb0000 
Aug 20 01:04:50 kernel: [42950317.650000] 9fe0: 40050424 bee84860 40034c80 4002ed5c 80000010 ffffffff                   
Aug 20 01:04:50 kernel: [42950317.650000]  r8:0001cd50 r7:00000001 r6:0001c138 r5:0bdb0000 r4:ffffffff
Aug 20 01:04:50 kernel: [42950317.660000] Mem-info:
Aug 20 01:04:50 kernel: [42950317.660000] DMA per-cpu:
Aug 20 01:04:50 kernel: [42950317.660000] CPU    0: hi:    0, btch:   1 usd:   0
Aug 20 01:04:50 kernel: [42950317.660000] Active:0 inactive:5788 dirty:0 writeback:642 unstable:0
Aug 20 01:04:50 kernel: [42950317.660000]  free:264 slab:675 mapped:0 pagetables:98 bounce:0
Aug 20 01:04:50 kernel: [42950317.660000] DMA free:1056kB min:720kB low:900kB high:1080kB active:0kB inactive:23152kB present:32512kB pages_scanned:0 all_unreclaimable? no
Aug 20 01:04:50 kernel: [42950317.660000] lowmem_reserve[]: 0 0 0
Aug 20 01:04:50 kernel: [42950317.660000] DMA: 18*4kB 23*8kB 4*16kB 1*32kB 1*64kB 1*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB = 1056kB
Aug 20 01:04:50 kernel: [42950317.660000] 5788 total pagecache pages
Aug 20 01:04:50 kernel: [42950317.660000] Swap cache: add 16927, delete 14573, find 5327/6151
Aug 20 01:04:50 kernel: [42950317.660000] Free swap  = 206988kB
Aug 20 01:04:50 kernel: [42950317.660000] Total swap = 248968kB
Aug 20 01:04:50 kernel: [42950317.660000] 8192 pages of RAM
Aug 20 01:04:50 kernel: [42950317.660000] 381 free pages
Aug 20 01:04:50 kernel: [42950317.660000] 817 reserved pages
Aug 20 01:04:50 kernel: [42950317.660000] 675 slab pages
Aug 20 01:04:50 kernel: [42950317.660000] 0 pages shared
Aug 20 01:04:50 kernel: [42950317.660000] 2354 pages swap cached
Aug 20 01:04:50 kernel: [42950317.660000] Out of memory: kill process 7270 (mkfs.ext3) score 617 or a child
Aug 20 01:04:50 kernel: [42950317.660000] Killed process 7270 (mkfs.ext3)
Aug 20 01:05:18 udevd-event[8047]: import_file_into_env: can't open 'fstab_import --root=/dev sda1 disk/by-id/usb-WD_My_Book_57442D574341553430373636383038-0:0-part1 disk/by-path/pci-0000:00:01.2-usb-0:1:1.0-scsi-0:0:0:0-part1 disk/by-uuid/91f614fa-c1
Aug 20 01:05:19 udevd-event[8052]: import_file_into_env: can't open 'fstab_import --root=/dev sda5 disk/by-id/usb-WD_My_Book_57442D574341553430373636383038-0:0-part5 disk/by-path/pci-0000:00:01.2-usb-0:1:1.0-scsi-0:0:0:0-part5 mapper/': No such file o
Aug 20 01:05:21 udevd-event[8176]: import_file_into_env: can't open 'fstab_import --root=/dev sda1 disk/by-id/usb-WD_My_Book_57442D574341553430373636383038-0:0-part1 disk/by-path/pci-0000:00:01.2-usb-0:1:1.0-scsi-0:0:0:0-part1 disk/by-uuid/91f614fa-c1
Aug 20 01:05:21 udevd-event[8181]: import_file_into_env: can't open 'fstab_import --root=/dev sda5 disk/by-id/usb-WD_My_Book_57442D574341553430373636383038-0:0-part5 disk/by-path/pci-0000:00:01.2-usb-0:1:1.0-scsi-0:0:0:0-part5 mapper/': No such file o
Aug 20 01:05:22 net/hw-detect.hotplug: Detected hotpluggable network interface lo
Aug 20 01:05:22 net/hw-detect.hotplug: Detected hotpluggable network interface eth0
Aug 20 01:05:24 kernel: [42950351.650000] Adding 248968k swap on /dev/sda5.  Priority:-2 extents:1 across:248968k
Aug 20 01:05:24 partman: mke2fs 1.41.0 (10-Jul-2008)
Aug 20 01:07:23 debconf: Setting debconf/language to en
Aug 20 01:34:34 kernel: [42952102.030000] kjournald starting.  Commit interval 5 seconds
Aug 20 01:34:34 kernel: [42952102.080000] EXT3 FS on sda2, internal journal
Aug 20 01:34:34 kernel: [42952102.080000] EXT3-fs: mounted filesystem with ordered data mode.
Aug 20 01:34:46 apt-install: Queueing package e2fsprogs for later installation
Aug 20 01:34:47 main-menu[2049]: DEBUG: resolver (libgcc1): package doesn't exist (ignored)
Aug 20 01:34:47 main-menu[2049]: INFO: Falling back to the package description for auto-install
Aug 20 01:34:47 main-menu[2049]: INFO: Falling back to the package description for ai-choosers
Aug 20 01:34:47 main-menu[2049]: INFO: Menu item 'bootstrap-base' selected

Reply to: