public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* mqueue perf data
@ 2013-12-10  7:49 Wanlong Gao
  2013-12-10  8:13 ` Fengguang Wu
  0 siblings, 1 reply; 2+ messages in thread
From: Wanlong Gao @ 2013-12-10  7:49 UTC (permalink / raw)
  To: Wu Fengguang; +Cc: LKML

Hi Fengguang,


Do we need to stat out the perf data of mqueue test in kernel_selftests?
It's like following.

Thanks,
Wanlong Gao



# 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'

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-10  8:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-10  7:49 mqueue perf data Wanlong Gao
2013-12-10  8:13 ` Fengguang Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox