Hello. I''m try to compile 32 bit pae kernel from xen git repo. If i check sparse memory - i get error scripts/kconfig/conf -s arch/x86/Kconfig CHK include/linux/version.h CHK include/linux/utsrelease.h SYMLINK include/asm -> include/asm-x86 CC kernel/bounds.s GEN include/linux/bounds.h CC arch/x86/kernel/asm-offsets.s In file included from include/linux/suspend.h:8, from arch/x86/kernel/asm-offsets_32.c:11, from arch/x86/kernel/asm-offsets.c:2: include/linux/mm.h:518:2: error: #error SECTIONS_WIDTH+NODES_WIDTH +ZONES_WIDTH > BITS_PER_LONG - NR_PAGEFLAGS make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1 make: *** [prepare0] Error 2 But if a check flat memory - compiling fine, but a can''t get memory hotplug, does memory hotplug possible with flat memory ? Or only with sparse? Daniel, can You check this? -- Vasiliy G Tolstov <v.tolstov@selfip.ru> Selfip.Ru _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Hello, On Fri, Nov 19, 2010 at 04:44:17PM +0300, Vasiliy G Tolstov wrote:> Hello. I''m try to compile 32 bit pae kernel from xen git repo. If i > check sparse memory - i get errorPlease send me full address of Xen repository which you are using its head and contents of your config file. Daniel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Vasiliy G Tolstov
2010-Nov-22 10:22 UTC
Re: [Xen-devel] 2.6.32 pv_ops and sparse/flat memory
On Mon, 2010-11-22 at 11:09 +0100, Daniel Kiper wrote:> Hello, > > On Fri, Nov 19, 2010 at 04:44:17PM +0300, Vasiliy G Tolstov wrote: > > Hello. I''m try to compile 32 bit pae kernel from xen git repo. If i > > check sparse memory - i get error > > Please send me full address of Xen repository which you are using > its headgit clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen git checkout -b xen/stable-2.6.32.x origin/xen/stable-2.6.32.x> and contents of your config file.in attach, modify flat memory to sparse mem and compile under i686 arch -- Vasiliy G Tolstov <v.tolstov@selfip.ru> Selfip.Ru _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Hello, On Mon, Nov 22, 2010 at 01:22:30PM +0300, Vasiliy G Tolstov wrote:> On Mon, 2010-11-22 at 11:09 +0100, Daniel Kiper wrote: > > Hello, > > > > On Fri, Nov 19, 2010 at 04:44:17PM +0300, Vasiliy G Tolstov wrote: > > > Hello. I''m try to compile 32 bit pae kernel from xen git repo. If i > > > check sparse memory - i get error > > > > Please send me full address of Xen repository which you are using > > its head > > git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen > git checkout -b xen/stable-2.6.32.x origin/xen/stable-2.6.32.x > > > and contents of your config file. > in attach, modify flat memory to sparse mem and compile under i686 archAs I find out it is normal behavior when CONFIG_XEN is enabled in this kernel version. Unlike mainline kernel this version establish new PG_foreign page flag which with CONFIG_SPARSEMEM_MANUAL and CONFIG_HIGHMEM64G enabled overflow page flags field which is - surprise - 32-bit long in i386 (for more details read include/linux/page-flags.h file). Solution: - enable CONFIG_HIGHMEM4G, - disable CONFIG_XEN (I am not sure that it is good one for you :-))) ). Daniel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Vasiliy G Tolstov
2010-Nov-23 19:01 UTC
Re: [Xen-devel] 2.6.32 pv_ops and sparse/flat memory
On Tue, 2010-11-23 at 19:06 +0100, Daniel Kiper wrote:> Hello, > > On Mon, Nov 22, 2010 at 01:22:30PM +0300, Vasiliy G Tolstov wrote: > > On Mon, 2010-11-22 at 11:09 +0100, Daniel Kiper wrote: > > > Hello, > > > > > > On Fri, Nov 19, 2010 at 04:44:17PM +0300, Vasiliy G Tolstov wrote: > > > > Hello. I''m try to compile 32 bit pae kernel from xen git repo. If i > > > > check sparse memory - i get error > > > > > > Please send me full address of Xen repository which you are using > > > its head > > > > git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen > > git checkout -b xen/stable-2.6.32.x origin/xen/stable-2.6.32.x > > > > > and contents of your config file. > > in attach, modify flat memory to sparse mem and compile under i686 arch > > As I find out it is normal behavior when CONFIG_XEN is enabled in this > kernel version. Unlike mainline kernel this version establish new PG_foreign > page flag which with CONFIG_SPARSEMEM_MANUAL and CONFIG_HIGHMEM64G > enabled overflow page flags field which is - surprise - 32-bit long in > i386 (for more details read include/linux/page-flags.h file). > > Solution: > - enable CONFIG_HIGHMEM4G, > - disable CONFIG_XEN (I am not sure that it > is good one for you :-))) ). > > DanielThank You Daniel! But i need to able to run vm with 56Gb memory size and highmem 4g not usable =). My question is - can i use memory about 56Gb and use memory hotplug, what you write? (using flat memory config) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Pasi Kärkkäinen
2010-Nov-23 19:42 UTC
Re: [Xen-devel] 2.6.32 pv_ops and sparse/flat memory
On Tue, Nov 23, 2010 at 10:01:21PM +0300, Vasiliy G Tolstov wrote:> On Tue, 2010-11-23 at 19:06 +0100, Daniel Kiper wrote: > > Hello, > > > > On Mon, Nov 22, 2010 at 01:22:30PM +0300, Vasiliy G Tolstov wrote: > > > On Mon, 2010-11-22 at 11:09 +0100, Daniel Kiper wrote: > > > > Hello, > > > > > > > > On Fri, Nov 19, 2010 at 04:44:17PM +0300, Vasiliy G Tolstov wrote: > > > > > Hello. I''m try to compile 32 bit pae kernel from xen git repo. If i > > > > > check sparse memory - i get error > > > > > > > > Please send me full address of Xen repository which you are using > > > > its head > > > > > > git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen > > > git checkout -b xen/stable-2.6.32.x origin/xen/stable-2.6.32.x > > > > > > > and contents of your config file. > > > in attach, modify flat memory to sparse mem and compile under i686 arch > > > > As I find out it is normal behavior when CONFIG_XEN is enabled in this > > kernel version. Unlike mainline kernel this version establish new PG_foreign > > page flag which with CONFIG_SPARSEMEM_MANUAL and CONFIG_HIGHMEM64G > > enabled overflow page flags field which is - surprise - 32-bit long in > > i386 (for more details read include/linux/page-flags.h file). > > > > Solution: > > - enable CONFIG_HIGHMEM4G, > > - disable CONFIG_XEN (I am not sure that it > > is good one for you :-))) ). > > > > Daniel > > Thank You Daniel! But i need to able to run vm with 56Gb memory size and > highmem 4g not usable =). My question is - can i use memory about 56Gb > and use memory hotplug, what you write? (using flat memory config) >You could enable 64GB mem support.. But running a 32bit kernel with 56GB of memory is not good.. you''ll probably run into all kinds of problems, since page structs will eat *most* of your lowmem and thus make your whole system pretty much unusable.. You really need 64bit kernel for that big amount of memory. (Note that you can still run 32bit userspace if you need to). -- Pasi _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Hi, On Tue, Nov 23, 2010 at 09:42:46PM +0200, Pasi K?rkk?inen wrote:> On Tue, Nov 23, 2010 at 10:01:21PM +0300, Vasiliy G Tolstov wrote: > > On Tue, 2010-11-23 at 19:06 +0100, Daniel Kiper wrote: > > > Hello, > > > > > > On Mon, Nov 22, 2010 at 01:22:30PM +0300, Vasiliy G Tolstov wrote: > > > > On Mon, 2010-11-22 at 11:09 +0100, Daniel Kiper wrote: > > > > > Hello, > > > > > > > > > > On Fri, Nov 19, 2010 at 04:44:17PM +0300, Vasiliy G Tolstov wrote: > > > > > > Hello. I''m try to compile 32 bit pae kernel from xen git repo. If i > > > > > > check sparse memory - i get error > > > > > > > > > > Please send me full address of Xen repository which you are using > > > > > its head > > > > > > > > git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen > > > > git checkout -b xen/stable-2.6.32.x origin/xen/stable-2.6.32.x > > > > > > > > > and contents of your config file. > > > > in attach, modify flat memory to sparse mem and compile under i686 arch > > > > > > As I find out it is normal behavior when CONFIG_XEN is enabled in this > > > kernel version. Unlike mainline kernel this version establish new PG_foreign > > > page flag which with CONFIG_SPARSEMEM_MANUAL and CONFIG_HIGHMEM64G > > > enabled overflow page flags field which is - surprise - 32-bit long in > > > i386 (for more details read include/linux/page-flags.h file). > > > > > > Solution: > > > - enable CONFIG_HIGHMEM4G, > > > - disable CONFIG_XEN (I am not sure that it > > > is good one for you :-))) ). > > > > > > Daniel > > > > Thank You Daniel! But i need to able to run vm with 56Gb memory size and > > highmem 4g not usable =). My question is - can i use memory about 56Gb > > and use memory hotplug, what you write? (using flat memory config) > > You could enable 64GB mem support..Pasi, as I know it is not possible in Jeremy''s kernel version under i386 arch (please look above). If I am wrong please correct me. Mainline kernel version under i386 arch with CONFIG_XEN, CONFIG_SPARSEMEM_MANUAL and CONFIG_HIGHMEM64G compile without problem however, I do not tested it as a PV guest (dom0 is not supported in this version). Daniel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel