Strange load issues with 2.5.69/70 in both -mm and -bk trees.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines · Mike Galbraith
Hi,
Wine is the shockwave plugin server right? You reniced _wine_ and the problem went away?
-Mike
Yes, this is correct. It's showed as pluginserver in the 'ps ax' output but I've since noticed that it is simply a symlink to wine. Of the two wine processes, wine and wineserver, it was the wine frontend process that was getting all of the CPU, showing 100% utilization. Renicing the wine process made the problem go away.
Running the exact same config on a 2.4.20 kernel uses only a few % of the CPU.
Later,
Tom
Quoted 8 lines · Tom Sightler
Yes, this is correct. It's showed as pluginserver in the 'ps ax' output but I've since noticed that it is simply a symlink to wine. Of the two wine processes, wine and wineserver, it was the wine frontend process that was getting all of the CPU, showing 100% utilization. Renicing the wine process made the problem go away.
Running the exact same config on a 2.4.20 kernel uses only a few % of the CPU.
could you apply the attached patch to 2.5.70 and check whether wine still uses up 100% CPU time? This might be an artifact introduced by the different HZ values of 2.4 and 2.5.
Ingo
asm-i386/param.h renamed from asm-i386/param.h.orig +1 -1
@@ -2,7 +2,7 @@#define _ASMi386_PARAM_H#ifdef __KERNEL__ -# define HZ 1000/* Internal kernel timer frequency */ +# define HZ 100/* Internal kernel timer frequency */ # define USER_HZ 100/* .. some user interfaces are in "ticks" */ # define CLOCKS_PER_SEC (USER_HZ)/* like times() */ #endif
Quoted 8 lines · Ingo Molnar
Quoted 6 lines · Tom Sightler
Yes, this is correct. It's showed as pluginserver in the 'ps ax' output but I've since noticed that it is simply a symlink to wine. Of the two wine processes, wine and wineserver, it was the wine frontend process that was getting all of the CPU, showing 100% utilization. Renicing the wine process made the problem go away.
Quoted 6 lines
Quoted 2 lines
Running the exact same config on a 2.4.20 kernel uses only a few % of the CPU.
could you apply the attached patch to 2.5.70 and check whether wine still uses up 100% CPU time? This might be an artifact introduced by the different HZ values of 2.4 and 2.5.
This made no difference. I suppose it's important to note that this problem is much easier to reproduce on pages which have multiple flash objects. Actually, the www.disney.com home page (as pointed out by my daughter) shows the problem better than any page I've found so far.
This page has at least two, very busy, flash objects, including menus which popup and play sounds as you mouse around the page. This is the one that is using nearly 100% of the CPU.
Most other pages, even fairly busy ones, don't seem to make wine use this much CPU, although there are other pages which show the problem, just much less.
I'm almost positive that wine doesn't consume that much CPU under 2.4, but I'm off to run some tests to prove or disprove that right now.
Later,
Tom
Quoted 2 lines · Tom Sightler
I'm almost positive that wine doesn't consume that much CPU under 2.4, but I'm off to run some tests to prove or disprove that right now.
Well, I'm going to have to eat these words. The problem with wine does seem to show up with 2.4 as well, although not as bad, and seems slightly harder to trigger. That www.disney.com page does indeed show the problem on both 2.4 and 2.5 kernels. I'm not sure why it's worse under 2.5 though, I still wonder if maybe it's because it's getting a priority boost, it almost seems it should get a penalty for being a CPU hog as Ingo pointed out. I can easily fix this in userspace so maybe this is a non-issue. If so, I apologize for bringing it to the list.
The only other case that is obviously worse under 2.5 than with 2.4 is VMware 4 (interestingly, VMware 3.2 seems exactly the opposite) however, I believe that this may indeed be related more to the HZ change than scheduling. I'm doing more testing on that now.
Later,
Tom
Quoted 5 lines · Tom Sightler
I'm not sure why it's worse
under 2.5 though, I still wonder if maybe it's because it's getting a priority boost, it almost seems it should get a penalty for being a CPU hog as Ingo pointed out. I can easily fix this in userspace so maybe this is a non-issue. If so, I apologize for bringing it to the list.
In trying to figure out why this might be worse under 2.5 I took some simple vmstat numbers under 2.4 and 2.5, this biggest difference is the number of context switches. Under 2.4, with the page loaded, but otherwise idle, the system averages around 700/sec, and when I mouse around the page I get 2000-3000/sec.
However, under 2.5, as I reported previously, I get 2000/sec all the time, and 3000-4000 as I mouse around the page.
Would this be expected behavior? Does 2.5 do something that would cause more context switches that 2.4? I have no idea if this would have any impact at all, but it was the only difference I could observe in my fairly simple testing of the two kernels.
Later,
Tom
Quoted 11 lines · Tom Sightler
In trying to figure out why this might be worse under 2.5 I took some simple vmstat numbers under 2.4 and 2.5, this biggest difference is the number of context switches. Under 2.4, with the page loaded, but otherwise idle, the system averages around 700/sec, and when I mouse around the page I get 2000-3000/sec.
However, under 2.5, as I reported previously, I get 2000/sec all the time, and 3000-4000 as I mouse around the page.
Would this be expected behavior? Does 2.5 do something that would cause more context switches that 2.4? I have no idea if this would have any impact at all, but it was the only difference I could observe in my fairly simple testing of the two kernels.
A quick patch to register profile hit counts for codepaths calling schedule() and/or yield() appears to be in order for such occasions.
-- wli