[ltp] Re: ibm-acpi-0.2 swap requirements
Eben King
linux-thinkpad@linux-thinkpad.org
Mon, 16 Aug 2004 18:35:52 -0400 (EDT)
On Sun, 15 Aug 2004, Eben King wrote:
> OK, I got, compiled and installed ibm-acpi-0.2 (after compiling ACPI _in_
> and APM _out_ of the kernel). I hit Fn-F4 (which is supposed to invoke a
> suspend-to-RAM, but as long as I know what it's going to do, that's OK).
> It went through its rigamarole, and started dumping stuff to swap. But
> the kernel panic()ed when it ran out of swap!
>
> Now, how much stuff has to fit in there? RAM, video memory, caches,
> CPU/GPU registers, various state, what else? I have 768 MB (786432 kB)
> RAM [1], 32 MB (32768 kB) video memory [2], 1024 kB (1 MB) cache [3] and
> 944044 kB swap [1] (of which, BTW, none is used). Subtract out those that
> I mentioned and that leaves 123820 kB (~121 MB). I rather doubt registers
> and state would fill all of that.
>
> So what am I missing? Is there something else that has to fit in there?
> Is there some command-line switch I missed?
>
> [1] free
> [2] /var/log/XFree86.0.log
> [3] /proc/cpuinfo
I got some more information, and repartitioned to make the swap area
larger, but it still fails. When I hit Fn-F4 at a console when kde is
running, it prints:
Stopping tasks: ==================================|
Freeing memory: ......................................|
Suspending devices... /critical section: counting pages to copy [nosave pfn 0x33
4][nosave pfn 0x335] ................. (pages needed 9177+512=9669 free: 187269)
Alloc pagedir
.[nosave pfn 0x334][nosave pfn 0x335].................critical section/: done
(9177 pages copied)
ACPI: PCI interrupt 0000:00:1d.7[D] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency of device 0000:00:1d.7 to 64
ACPI: PCI interrupt 0000:00:1f.1[A] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI interrupt 0000:00:1f.5[B] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency of device 0000:00:1f.5 to 64
Writing data to swap (9177 pages): .<0>Kernel panic:
Not enough swapspace when writing data
(end copy)
It's written by hand, so there might be mistakes.
I shrank /usr to 6.2 GB and enlarged swapspace to 1423692 kB (that's a bit
less than twice RAM). Also. the number of pages needed (according to
ibm-acpi's crash message) increased when I made swapspace larger.
Curious.
Has anyone else seen this? I'm currently using 2.6.8-rc3 as it had a
feature I needed (I forget which one) and 2.6.7 didn't. Will this "go
away" if I upgrade to 2.6.8.1?
--
-eben ebQenW1@EtaRmpTabYayU.rIr.OcoPm home.tampabay.rr.com/hactar
GEMINI: Your birthday party will be ruined once again by your explosive
flatulence. Your love life will run into trouble when your fiancee hurls a
javelin through your chest. -- Weird Al, _Your Horoscope for Today_