Re: [PATCH 1/2] sched: fair group: fix overflow(was: fix divide by zero)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Thursday, June 12, 2008 - 1:49 am

On Thu, 2008-06-12 at 16:42 +0800, Lai Jiangshan wrote:

Yeah, a lot of stuff will fall apart when weights grow too large, I
think somewhere the load balance code also assumes weight * NICE_0_LOAD
always fits in a long. So that immediately limits us to 32-10=22 bits
(on 32bit systems).

There might be other funnies..


Thanks!

Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] sched: fair group: fix divide by zero, Lai Jiangshan, (Wed Jun 11, 12:12 am)
Re: [PATCH] sched: fair group: fix divide by zero, Peter Zijlstra, (Wed Jun 11, 12:15 am)
Re: [PATCH 1/2] sched: fair group: fix overflow(was: fix d ..., Peter Zijlstra, (Thu Jun 12, 1:49 am)