Re: [PATCH RFC] x86: Reduce MAX_LOCAL_APIC and MAX_IO_APICS

2015-10-02 Thread Daniel J Blueman
On Saturday, September 26, 2015 at 4:40:07 AM UTC+8, Denys Vlasenko wrote: > Before this change MAX_LOCAL_APIC had the fixed value of 32*1024. > Such a big value causes several data arrays to be quite oversized: > > phys_cpu_present_map is 4 kbytes (one bit per apic id), > __apicid_to_node[] is

Re: [PATCH RFC] x86: Reduce MAX_LOCAL_APIC and MAX_IO_APICS

2015-10-02 Thread Daniel J Blueman
On Saturday, September 26, 2015 at 4:40:07 AM UTC+8, Denys Vlasenko wrote: > Before this change MAX_LOCAL_APIC had the fixed value of 32*1024. > Such a big value causes several data arrays to be quite oversized: > > phys_cpu_present_map is 4 kbytes (one bit per apic id), > __apicid_to_node[] is

Re: [PATCH RFC] x86: Reduce MAX_LOCAL_APIC and MAX_IO_APICS

2015-09-30 Thread Thomas Gleixner
On Wed, 30 Sep 2015, Denys Vlasenko wrote: > On 09/30/2015 05:11 PM, Thomas Gleixner wrote: > > On Fri, 25 Sep 2015, Denys Vlasenko wrote: > >> > >> +config MAX_LAPIC_ID > >> + int "Maximum APIC ID" > >> + range 8 32768 > >> + default "8" > >> + ---help--- > >> +Use this option to set

Re: [PATCH RFC] x86: Reduce MAX_LOCAL_APIC and MAX_IO_APICS

2015-09-30 Thread Jiang Liu
On 2015/9/26 3:48, Denys Vlasenko wrote: > Before this change MAX_LOCAL_APIC had the fixed value of 32*1024. > Such a big value causes several data arrays to be quite oversized: > > phys_cpu_present_map is 4 kbytes (one bit per apic id), > __apicid_to_node[] is 64 kbytes, > apic_version[] is 128

Re: [PATCH RFC] x86: Reduce MAX_LOCAL_APIC and MAX_IO_APICS

2015-09-30 Thread Jiang Liu
On 2015/9/30 23:49, Denys Vlasenko wrote: > On 09/30/2015 05:11 PM, Thomas Gleixner wrote: >> On Fri, 25 Sep 2015, Denys Vlasenko wrote: >>> >>> +config MAX_LAPIC_ID >>> + int "Maximum APIC ID" >>> + range 8 32768 >>> + default "8" >>> + ---help--- >>> + Use this option to set

Re: [PATCH RFC] x86: Reduce MAX_LOCAL_APIC and MAX_IO_APICS

2015-09-30 Thread Denys Vlasenko
On 09/30/2015 05:11 PM, Thomas Gleixner wrote: > On Fri, 25 Sep 2015, Denys Vlasenko wrote: >> >> +config MAX_LAPIC_ID >> +int "Maximum APIC ID" >> +range 8 32768 >> +default "8" >> +---help--- >> + Use this option to set maximum allowed Local APIC ID higher than >> +

Re: [PATCH RFC] x86: Reduce MAX_LOCAL_APIC and MAX_IO_APICS

2015-09-30 Thread Thomas Gleixner
On Fri, 25 Sep 2015, Denys Vlasenko wrote: > > +config MAX_LAPIC_ID > + int "Maximum APIC ID" > + range 8 32768 > + default "8" > + ---help--- > + Use this option to set maximum allowed Local APIC ID higher than > + maximum number of CPUs. This may be necessary for

Re: [PATCH RFC] x86: Reduce MAX_LOCAL_APIC and MAX_IO_APICS

2015-09-30 Thread Jiang Liu
On 2015/9/26 3:48, Denys Vlasenko wrote: > Before this change MAX_LOCAL_APIC had the fixed value of 32*1024. > Such a big value causes several data arrays to be quite oversized: > > phys_cpu_present_map is 4 kbytes (one bit per apic id), > __apicid_to_node[] is 64 kbytes, > apic_version[] is 128

Re: [PATCH RFC] x86: Reduce MAX_LOCAL_APIC and MAX_IO_APICS

2015-09-30 Thread Thomas Gleixner
On Wed, 30 Sep 2015, Denys Vlasenko wrote: > On 09/30/2015 05:11 PM, Thomas Gleixner wrote: > > On Fri, 25 Sep 2015, Denys Vlasenko wrote: > >> > >> +config MAX_LAPIC_ID > >> + int "Maximum APIC ID" > >> + range 8 32768 > >> + default "8" > >> + ---help--- > >> +Use this option to set

Re: [PATCH RFC] x86: Reduce MAX_LOCAL_APIC and MAX_IO_APICS

2015-09-30 Thread Denys Vlasenko
On 09/30/2015 05:11 PM, Thomas Gleixner wrote: > On Fri, 25 Sep 2015, Denys Vlasenko wrote: >> >> +config MAX_LAPIC_ID >> +int "Maximum APIC ID" >> +range 8 32768 >> +default "8" >> +---help--- >> + Use this option to set maximum allowed Local APIC ID higher than >> +

Re: [PATCH RFC] x86: Reduce MAX_LOCAL_APIC and MAX_IO_APICS

2015-09-30 Thread Thomas Gleixner
On Fri, 25 Sep 2015, Denys Vlasenko wrote: > > +config MAX_LAPIC_ID > + int "Maximum APIC ID" > + range 8 32768 > + default "8" > + ---help--- > + Use this option to set maximum allowed Local APIC ID higher than > + maximum number of CPUs. This may be necessary for

Re: [PATCH RFC] x86: Reduce MAX_LOCAL_APIC and MAX_IO_APICS

2015-09-30 Thread Jiang Liu
On 2015/9/30 23:49, Denys Vlasenko wrote: > On 09/30/2015 05:11 PM, Thomas Gleixner wrote: >> On Fri, 25 Sep 2015, Denys Vlasenko wrote: >>> >>> +config MAX_LAPIC_ID >>> + int "Maximum APIC ID" >>> + range 8 32768 >>> + default "8" >>> + ---help--- >>> + Use this option to set

[PATCH RFC] x86: Reduce MAX_LOCAL_APIC and MAX_IO_APICS

2015-09-25 Thread Denys Vlasenko
Before this change MAX_LOCAL_APIC had the fixed value of 32*1024. Such a big value causes several data arrays to be quite oversized: phys_cpu_present_map is 4 kbytes (one bit per apic id), __apicid_to_node[] is 64 kbytes, apic_version[] is 128 kbytes. On "usual" systems, APIC ids simply go from

[PATCH RFC] x86: Reduce MAX_LOCAL_APIC and MAX_IO_APICS

2015-09-25 Thread Denys Vlasenko
Before this change MAX_LOCAL_APIC had the fixed value of 32*1024. Such a big value causes several data arrays to be quite oversized: phys_cpu_present_map is 4 kbytes (one bit per apic id), __apicid_to_node[] is 64 kbytes, apic_version[] is 128 kbytes. On "usual" systems, APIC ids simply go from