Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1211475

Re: Regarding USER_HZ and the exposure of kernel jiffies in userspace

From Thomas Gleixner <tglx@linutronix.de>
Newsgroups linux.kernel
Subject Re: Regarding USER_HZ and the exposure of kernel jiffies in userspace
Date 2015-08-22 16:40 +0200
Message-ID <q0i7E-4Sk-7@gated-at.bofh.it> (permalink)
References <q0hEB-4kX-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, 22 Aug 2015, William Breathitt Gray wrote:
> I believe the error in my understanding is the assumption that _all_
> instances of kernel jiffies exposure in userspace should be scaled; but
> it appears that not all instances are. When are kernel jiffies meant to
> be scaled via USER_HZ, and when are they not?

All instances which are de facto APIs, syscalls and also various files
in proc/ must be in USER_HZ because userspace applications depend on
the USER_HZ value.

proc/timer_list is exempt from that because its more a debugging
interface which is not part of the strict kernel API. And we really
want to see the real values and not the scaled USER_HZ ones for that
purpose. I hope that answers your question.

Thanks,

	tglx




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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Regarding USER_HZ and the exposure of kernel jiffies in userspace William Breathitt Gray <vilhelm.gray@gmail.com> - 2015-08-22 16:10 +0200
  Re: Regarding USER_HZ and the exposure of kernel jiffies in  userspace Thomas Gleixner <tglx@linutronix.de> - 2015-08-22 16:40 +0200

csiph-web