On Mon, 12 Jun 2006 18:00:43 -0700 jnorman <jnorman at osdl.org> wrote: > all: > > Where can I find the patches and instructions for hot-remove for memory > hotplug? > There is no available patch for recent kernel now. I'll rewrite old sample codes for memory-hot-remove after memory-hot-add stablization. It needs some more fixes. > For the test cases I need to be able to determine how much physical > memory the system has without the memory being onlined, is there a way > to do this? > I think you're using Intel machine. If so, there is 2 ways. 1. Read SRAT table. About SRAT, see here : http://www.microsoft.com/whdc/system/CEC/SRAT.mspx i386's SRAT parser has printk in it. So, reading messagelog is enough, I think. arch/i386/kernel/srat.c static void __init parse_memory_affinity_structure (char *sratp) If your machine supports Windows's memory hot plug, it must equips SRAT. checking CONFIG_ACPI_SRAT is what you should do. 2. Read DSDT by decompile it ;) Reading SRAT is easy. > In the case that I am using acpi for the entry point, I need to be able > to tell how many memory sections have been set up in the dsdt file, is > there a way to do this(other than capturing, decompiling and then > parsing the /proc/acpi/dsdt file)? > I post patches to show memory section <-> DSDT relationship. But not accepted. I'll update and post it (here) if you need. > I will also need a way to migrate pages in memory and then be able to > verify that they have been successfully migrated, how would I go about > that? > We have old patch, but it doesn't catch up recent changes in the kernel. So, not available. Please wait a bit, I think I(we)'ll restart again after OLS. -Kame