Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: sched_fair: vruntime and min_vruntime will be overflow?

25 views
Skip to first unread message
Message has been deleted

KOSAKI Motohiro

unread,
Mar 5, 2010, 2:30:03 AM3/5/10
to
> 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. :)

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

0 new messages