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: <20071219125543.16a9fb70.randy.dunlap@oracle.com>
Date:	Wed, 19 Dec 2007 12:55:43 -0800
From:	Randy Dunlap <randy.dunlap@...cle.com>
To:	Remy Bohmer <linux@...mer.net>
Cc:	Steven Rostedt <rostedt@...dmis.org>,
	Arnaldo Carvalho de Melo <acme@...stprotocols.net>,
	Ingo Molnar <mingo@...e.hu>,
	Juergen Beisert <jbe@...gutronix.de>,
	Darren Hart <dvhltc@...ibm.com>,
	linux-rt-users@...r.kernel.org,
	Sven-Thorsten Dietrich <sdietrich@...ell.com>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [patch 3/3] Enable setting of IRQ-thread priorities from kernel
 cmdline. (repost:CC to LKML)

On Wed, 19 Dec 2007 20:45:54 +0100 Remy Bohmer wrote:

>  Documentation/kernel-parameters.txt |   11 +++
>  kernel/softirq.c                    |  105 ++++++++++++++++++++++++++++++------
>  2 files changed, 99 insertions(+), 17 deletions(-)
> 
> Index: linux-2.6.24-rc5-rt1/Documentation/kernel-parameters.txt
> ===================================================================
> --- linux-2.6.24-rc5-rt1.orig/Documentation/kernel-parameters.txt	2007-12-18 22:06:11.000000000 +0100
> +++ linux-2.6.24-rc5-rt1/Documentation/kernel-parameters.txt	2007-12-18 22:07:19.000000000 +0100
> @@ -806,6 +806,17 @@ and is between 256 and 4096 characters. 
>  			If this cmdline argument is ommitted, every thread
>  			runs at prio 50.
>  
> +	sirq_pmap=	[IRQ-threading] List of priorities each softirq
> +			thread must have.
> +			Format: sirq_pmap=block/0:90,sched/0:75,50
> +			The priorities have to be specified per-cpu.
> +			The first field without ':', is the default prio.

	Drop comma.

> +			The names have to match the softirq_names[] table in
> +			kernel/softirq.c, (thus without 'softirq-' prefix) to
> +			keep the cmd-line short.
> +			If this cmdline argument is ommitted, every softirq

                                                    omitted,

> +			runs at prio 50.
> +
>  	ports=		[IP_VS_FTP] IPVS ftp helper module
>  			Default is 21.
>  			Up to 8 (IP_VS_APP_MAX_PORTS) ports
> Index: linux-2.6.24-rc5-rt1/kernel/softirq.c
> ===================================================================
> --- linux-2.6.24-rc5-rt1.orig/kernel/softirq.c	2007-12-18 22:06:11.000000000 +0100
> +++ linux-2.6.24-rc5-rt1/kernel/softirq.c	2007-12-18 22:08:54.000000000 +0100
> @@ -1051,3 +1062,63 @@ int on_each_cpu(void (*func) (void *info
>  }
>  EXPORT_SYMBOL(on_each_cpu);
>  #endif
> +
> +/*
> + * Lookup the softirq thread priority.
> + * A map for the priorities can be given on the kernel commandline.
> + * if name is NULL, or no kernel commandline options is given, the default

      If ...................................... option is given,

> + * prio is returned, which is either MAX_PRIO/2, or the default given on the
> + * kernel commandline.
> + */
> +static int get_softirq_prio(const char *name)
> +{
...
> +}

---
~Randy
--
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