lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m1mzag9o8w.fsf@ebiederm.dsl.xmission.com>
Date:	Mon, 07 Aug 2006 16:26:07 -0600
From:	ebiederm@...ssion.com (Eric W. Biederman)
To:	Adrian Bunk <bunk@...sta.de>
Cc:	Andrew Morton <akpm@...l.org>,
	"Randy.Dunlap" <rdunlap@...otime.net>, Andi Kleen <ak@...e.de>,
	"Protasevich, Natalie" <Natalie.Protasevich@...SYS.com>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] x86_64: Make NR_IRQS configurable in Kconfig

Adrian Bunk <bunk@...sta.de> writes:

> On Mon, Aug 07, 2006 at 12:53:35PM -0600, Eric W. Biederman wrote:
>>...
>> --- a/arch/x86_64/Kconfig
>> +++ b/arch/x86_64/Kconfig
>> @@ -384,6 +384,20 @@ config NR_CPUS
>>  	  This is purely to save memory - each supported CPU requires
>>  	  memory in the static kernel configuration.
>>  
>> +config NR_IRQS
>> +	int "Maximum number of IRQs (224-57344)"
>
> 	int "Maximum number of IRQs (224-57344)" depends on SMP
>
> This way, people with SMP=n will not see this question.

I doubt it will be interesting but it might be, it is certainly
well defined what happens when you have more irqs that a cpu
has irq destinations.

>> +	range 224 57344
>> +	default "4096" if SMP
>> +	default "224" if !SMP
>
> Why not always
>          default "224"
> ?

A couple of reasons.
- Things still need shaking out at the > 256 irq level and since
  this is going into -mm it is reasonable to have a large default.

- It is silly to have a default that won't work on some hardware,
  that we can support without unreasonable overhead.

- There are major simplicity gains to be had from a slight sparse
  irq space.

- I haven't a clue what the irq numbers look like in the real world
  that we should be supporting since there was code in x86_64 and
  i386 to hack them up terribly.  All I have a clue about are
  the really big machines.  So I wouldn't be surprised if there
  were some small but I/O heavy machines that found 224 too limiting.
  I know of at least one uniprocessor machine that would have used
  almost all 224 irqs.

- I want people to realize that we can easily have more than 256 irqs.
  With pure software interrupt sources and networking drivers allocating
  one irq per cpu the chances of us using our maximum allotment of irqs
  is much more likely in the next couple of years.

- 4096 is the number I expect distribution vendors will ship.  Why set
  a different default than what you expect most people will use?

Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ