Skip to contentSkip to conversation

increase evtchn limits

DISCUSSION Jan Beulich 2 participants 5 messages May 21, 2010

lore
Share & tools
lore
#0 lore raw
Quoted 3 lines
Quoted 1 line
Quoted 1 line

Keir Fraser 05/21/10 9:06 AM >>>

How many CPUs do you have to bring up? How many event channels are we squandering per CPU in PV Linux right now (can you enumerate them)?

There are 5 event channels per CPU (timer, reschedule IPI, SMP call function IPI, SMP call function single IPI, and spinlock wakeup IPI).

While 4096 may seem plenty, I don't think it really is: With larger systems you not only have more CPUs, but you also generally have more devices (with e.g. MSI-X ones possibly requiring quite a number of event channels per device) plus you also expect to be able to run more guests, which in turn requires more event channels in Dom0. So I agree with Mukesh that we ought to find a reasonable way to overcome this limit.

Jan

#1 lore raw
Quoted 7 lines · Jan Beulich
Quoted 3 lines
Quoted 1 line
Quoted 1 line

Keir Fraser 05/21/10 9:06 AM >>>

How many CPUs do you have to bring up? How many event channels are we squandering per CPU in PV Linux right now (can you enumerate them)?

There are 5 event channels per CPU (timer, reschedule IPI, SMP call function IPI, SMP call function single IPI, and spinlock wakeup IPI).

Quoted 6 lines

While 4096 may seem plenty, I don't think it really is: With larger systems you not only have more CPUs, but you also generally have more devices (with e.g. MSI-X ones possibly requiring quite a number of event channels per device) plus you also expect to be able to run more guests, which in turn requires more event channels in Dom0. So I agree with Mukesh that we ought to find a reasonable way to overcome this limit.

Has the event channel limit *actually* been hit? Or is this another "what if we had over a thousand CPUs" scenario?

-- Keir

#2 lore raw
Quoted 2 lines · Keir Fraser
Quoted 2 lines

There are 5 event channels per CPU (timer, reschedule IPI, SMP call function IPI, SMP call function single IPI, and spinlock wakeup IPI).

It would be very easy to collapse the four IPIs onto one event channel plus a bitmask of IPI reasons. Then that would be a much more economical two event channels per CPU. And the change is a hell of a lot easier to implement than extensible event channels. I bet it could be knocked together in an hour.

-- Keir

#3 lore raw
Quoted 7 lines
Quoted 1 line
Quoted 1 line · Keir Fraser
Quoted 2 lines · Keir Fraser
Quoted 2 lines

There are 5 event channels per CPU (timer, reschedule IPI, SMP call function IPI, SMP call function single IPI, and spinlock wakeup IPI).

Quoted 5 lines

It would be very easy to collapse the four IPIs onto one event channel plus a bitmask of IPI reasons. Then that would be a much more economical two event channels per CPU. And the change is a hell of a lot easier to implement than extensible event channels. I bet it could be knocked together in an hour.

Indeed, it didn't occur to me to do it that way, but this sounds pretty strait forward to implement.

Thanks, Jan

#4 lore raw
In reply to Keir Fraser
Quoted 3 lines
Quoted 1 line
Quoted 1 line · Keir Fraser

Has the event channel limit *actually* been hit? Or is this another "what if we had over a thousand CPUs" scenario?

I haven't seen it hit, I've seen the dump from a box with about 1000 of them in use (and there not having been many guests). So this is more of a "let's think in time about the not too far future" consideration.

Jan