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] [day] [month] [year] [list]
Date:	Tue, 10 Dec 2013 16:13:45 +0800
From:	Fengguang Wu <fengguang.wu@...el.com>
To:	Wanlong Gao <gaowanlong@...fujitsu.com>
Cc:	LKML <linux-kernel@...r.kernel.org>
Subject: Re: mqueue perf data

On Tue, Dec 10, 2013 at 03:49:38PM +0800, Wanlong Gao wrote:
> Hi Fengguang,
> 
> 
> Do we need to stat out the perf data of mqueue test in kernel_selftests?
> It's like following.

They look like performance data, except that the test time is so short
that I'm not sure they are reliable enough. If so, such lines with
"speed" numbers are most interesting:

                                                405 nsec/msg

Thanks,
Fengguang

> 
> # make run_tests -C mqueue
> make: Entering directory `/git/linux/tools/testing/selftests/mqueue'
> 
> Initial system state:
> 	Using queue path:		/test1
> 	RLIMIT_MSGQUEUE(soft):		819200
> 	RLIMIT_MSGQUEUE(hard):		819200
> 	Maximum Message Size:		8192
> 	Maximum Queue Size:		10
> 	Default Message Size:		8192
> 	Default Queue Size:		10
> 
> Adjusted system state for testing:
> 	RLIMIT_MSGQUEUE(soft):		819200
> 	RLIMIT_MSGQUEUE(hard):		819200
> 	Maximum Message Size:		8192
> 	Maximum Queue Size:		10
> 	Default Message Size:		8192
> 	Default Queue Size:		10
> 
> 
> Test series 1, behavior when no attr struct passed to mq_open:
> Kernel supports setting defaults separately from maximums:		PASS
> Given sane values, mq_open without an attr struct succeeds:		PASS
> Kernel properly honors default setting knobs:				PASS
> Kernel properly limits default values to lesser of default/max:		PASS
> Kernel properly fails to create queue when defaults would
> exceed rlimit:								PASS
> 
> 
> Test series 2, behavior when attr struct is passed to mq_open:
> Queue open in excess of rlimit max when euid = 0 failed:		PASS
> Queue open with mq_maxmsg > limit when euid = 0 succeeded:		PASS
> Queue open with mq_msgsize > limit when euid = 0 succeeded:		PASS
> Queue open with total size > 2GB when euid = 0 failed:			PASS
> Queue open in excess of rlimit max when euid = 99 failed:		PASS
> Queue open with mq_maxmsg > limit when euid = 99 failed:		PASS
> Queue open with mq_msgsize > limit when euid = 99 failed:		PASS
> Queue open with total size > 2GB when euid = 99 failed:			PASS
> 
> Initial system state:
> 	Using queue path:			/mq_perf_tests
> 	RLIMIT_MSGQUEUE(soft):			819200
> 	RLIMIT_MSGQUEUE(hard):			819200
> 	Maximum Message Size:			8192
> 	Maximum Queue Size:			10
> 	Nice value:				0
> 
> Adjusted system state for testing:
> 	RLIMIT_MSGQUEUE(soft):			(unlimited)
> 	RLIMIT_MSGQUEUE(hard):			(unlimited)
> 	Maximum Message Size:			16777216
> 	Maximum Queue Size:			65530
> 	Nice value:				-20
> 	Continuous mode:			(disabled)
> 	CPUs to pin:				3
> 
> 	Queue /mq_perf_tests created:
> 		mq_flags:			O_NONBLOCK
> 		mq_maxmsg:			65530
> 		mq_msgsize:			16
> 		mq_curmsgs:			0
> 
> 	Started mqueue performance test thread on CPU 3
> 		Max priorities:			32768
> 		Clock resolution:		1 nsec
> 
> 	Test #1: Time send/recv message, queue empty
> 		(10000000 iterations)
> 		Send msg:			4.50690280s total time
> 						405 nsec/msg
> 		Recv msg:			4.123621560s total time
> 						412 nsec/msg
> 
> 	Test #2a: Time send/recv message, queue full, constant prio
> 		(100000 iterations)
> 		Filling queue...done.		0.14554407s
> 		Testing...done.
> 		Send msg:			0.40292962s total time
> 						402 nsec/msg
> 		Recv msg:			0.40605786s total time
> 						406 nsec/msg
> 		Draining queue...done.		0.15010003s
> 
> 	Test #2b: Time send/recv message, queue full, increasing prio
> 		(100000 iterations)
> 		Filling queue...done.		0.25628197s
> 		Testing...done.
> 		Send msg:			0.53792862s total time
> 						537 nsec/msg
> 		Recv msg:			0.52323416s total time
> 						523 nsec/msg
> 		Draining queue...done.		0.17617835s
> 
> 	Test #2c: Time send/recv message, queue full, decreasing prio
> 		(100000 iterations)
> 		Filling queue...done.		0.26939894s
> 		Testing...done.
> 		Send msg:			0.55733128s total time
> 						557 nsec/msg
> 		Recv msg:			0.51363749s total time
> 						513 nsec/msg
> 		Draining queue...done.		0.19254167s
> 
> 	Test #2d: Time send/recv message, queue full, random prio
> 		(100000 iterations)
> 		Filling queue...done.		0.28530211s
> 		Testing...done.
> 		Send msg:			0.59583951s total time
> 						595 nsec/msg
> 		Recv msg:			0.55122718s total time
> 						551 nsec/msg
> 		Draining queue...done.		0.19537439s
> make: Leaving directory `/git/linux/tools/testing/selftests/mqueue'
--
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