* sched_fair: vruntime and min_vruntime will be overflow?
@ 2010-03-05 7:12 figo zhang
2010-03-05 7:20 ` KOSAKI Motohiro
0 siblings, 1 reply; 2+ messages in thread
From: figo zhang @ 2010-03-05 7:12 UTC (permalink / raw)
To: linux-kernel
hi,
when enqueue or dequeue the task, the se->vruntime and cfs_rq->min_vruntime will
increased, i want to know it is will be overflow in future time?
Best,
Figo.zhang
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: sched_fair: vruntime and min_vruntime will be overflow?
2010-03-05 7:12 sched_fair: vruntime and min_vruntime will be overflow? figo zhang
@ 2010-03-05 7:20 ` KOSAKI Motohiro
0 siblings, 0 replies; 2+ messages in thread
From: KOSAKI Motohiro @ 2010-03-05 7:20 UTC (permalink / raw)
To: figo zhang; +Cc: kosaki.motohiro, linux-kernel
> hi,
>
> when enqueue or dequeue the task, the se->vruntime and cfs_rq->min_vruntime will
> increased, i want to know it is will be overflow in future time?
Let's quick calculation.
type of vruntime is u64.
1 year = 365 x 24 x 60 x 60 x 1000 x 1000 x 1000 nanosec
~= 3 x 10^16
~= 2^55
2^64 / 2^55 = 2^9 ~= 500 year.
then, 500 years after you can see overflow if you still live. :)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-05 7:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-05 7:12 sched_fair: vruntime and min_vruntime will be overflow? figo zhang
2010-03-05 7:20 ` KOSAKI Motohiro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®