Linux-rt-users Archive on
 help / color / Atom feed
* Multi pthreaded RT application - mlock doubt
@ 2021-04-01  2:06 Dipen Patel
  0 siblings, 0 replies; only message in thread
From: Dipen Patel @ 2021-04-01  2:06 UTC (permalink / raw)
  To: linux-rt-users


I was following with some below changes:

1. Added 8 threads
2. Moved show_new_pagefault_count logic inside thread function once thread starts running as below:

thread_fn {

	getrusage(RUSAGE_SELF, &usage);
	print and save usage.ruminflt;


	getrusage(RUSAGE_SELF, &usage);

	print usage.ruminflt - last_saved_cnt;

I observed there are still page faults (although not in big numbers as if there was no mlock), after touching stack in prove_thread_stack_use_is_safe call. I played around with MY_STACK_SIZE (from 1KB to 1MB) but still see minor page faults.

I am running 4.9.201_rt134 kernel. Any idea what I will be missing?

Best Regards,
Dipen Patel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-01  2:06 Multi pthreaded RT application - mlock doubt Dipen Patel

Linux-rt-users Archive on

Archives are clonable:
	git clone --mirror linux-rt-users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-rt-users linux-rt-users/ \
	public-inbox-index linux-rt-users

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone