You are not logged in.

#26 2008-02-26 05:22:55

vor_lord
Member
From: Fort Collins, Colorado, USA
Registered: 2004-06-10
Posts: 52

Re: World of Warcraft FPS drop every 15 seconds.

shazeal wrote:

I did some playing around and enabled SCHED_DEBUG in both 2.6.23 and 2.6.24 the problem is with the tunables in 2.6.24.

2.6.23 Tunables

kernel.sched_features=21
kernel.sched_batch_wakeup_granularity_ns=25000000
kernel.sched_min_granularity_ns=4000000

2.6.24 Tunables

kernel.sched_features=7
kernel.sched_batch_wakeup_granularity_ns=20000000
kernel.sched_min_granularity_ns=8000000

Setting the 2.6.24 tunables using sysctl to match the 2.6.23 ones solves the issue.

I'm trying to do this.  I'm a longtime arch user but it just normally works so well I don't have to mess with anything so forgive my inexperience.

I took the PKGBUILD for 2.6.24 and added:

CONFIG_SCHED_DEBUG=y

to the config file and built the package using makepkg.  Then I installed it using pacman -U.  I realize I didn't follow a good naming convention for the kernel, but hey I'm just getting started and want to minimize any changes I make.

However, even though I can see that files in /boot were updated, the kconfig26 file there still lists CONFIG_SCHED_DEBUG as not set.  There is no way to access these items from sysctl.  Being new to this, what have I missed?


strongbad:brett/abs> diff -q kernel26 /var/abs/core/base/kernel26
Files kernel26/PKGBUILD and /var/abs/core/base/kernel26/PKGBUILD differ
Files kernel26/config and /var/abs/core/base/kernel26/config differ
Only in kernel26: kernel26-2.6.24.1-2-i686.pkg.tar.gz
Only in kernel26: linux-2.6.24.tar.bz2
Only in kernel26: patch-2.6.24.1.bz2
Only in kernel26: pkg
Only in kernel26: squashfs3.3.tar.gz
Only in kernel26: src
Only in kernel26: unionfs-2.2.2_for_2.6.24-rc7.diff.gz
strongbad:brett/abs> diff kernel26/PKGBUILD /var/abs/core/base/kernel26/PKGBUILD
66c66
<        '4fad3fc6b82717a4295b0ab049bd73e2'
---
>          '97c28c42ef2bbf8c9c6464a1e09eaf90'
strongbad:/boot> diff /boot/kconfig26 /home/brett/abs/kernel26/config
4c4
< # Mon Feb 25 21:04:24 2008
---
> # Fri Jan 25 08:01:32 2008
67a68,71
> # CONFIG_CGROUP_DEBUG is not set
> # CONFIG_CGROUP_NS is not set
> # CONFIG_CGROUP_CPUACCT is not set
> # CONFIG_CPUSETS is not set
68a73,75
> # CONFIG_FAIR_USER_SCHED is not set
> # CONFIG_FAIR_CGROUP_SCHED is not set
> # CONFIG_SYSFS_DEPRECATED is not set
964d970
<
1010a1017
> # CONFIG_XEN_BLKDEV_FRONTEND is not set
1689a1697
> # CONFIG_XEN_NETDEV_FRONTEND is not set
2024a2033
> # CONFIG_HVC_XEN is not set
2890a2900
>
3538a3549
> CONFIG_SCHED_DEBUG=y

Last edited by vor_lord (2008-02-26 05:45:04)

Offline

#27 2008-03-01 23:54:13

vor_lord
Member
From: Fort Collins, Colorado, USA
Registered: 2004-06-10
Posts: 52

Re: World of Warcraft FPS drop every 15 seconds.

vor_lord wrote:

I took the PKGBUILD for 2.6.24 and added:

CONFIG_SCHED_DEBUG=y

to the config file and built the package using makepkg.  Then I installed it using pacman -U.  I realize I didn't follow a good naming convention for the kernel, but hey I'm just getting started and want to minimize any changes I make.

However, even though I can see that files in /boot were updated, the kconfig26 file there still lists CONFIG_SCHED_DEBUG as not set.  There is no way to access these items from sysctl.  Being new to this, what have I missed?

Apparently leaving "# CONFIG_SCHED_DEBUG is not set" in the file makes a difference?

I took it out and rebuilt it, works great.

After shazeal's suggestions about tweaking the kernel tunables, my problem is fixed.  Thanks very much.

Offline

#28 2008-03-14 19:03:35

Bestiapeluda
Member
From: Buenos Aires, Argentina
Registered: 2007-10-16
Posts: 181

Re: World of Warcraft FPS drop every 15 seconds.

did anyone notice that this happens only when you are connected to a server?
I dont have any problem with the login screen. Only when when I have to choose a character.
And when Im playing and unplug my internet connection the stutter disappears.

Offline

#29 2008-03-14 19:57:31

Issh
Member
Registered: 2007-12-02
Posts: 58

Re: World of Warcraft FPS drop every 15 seconds.

aparently using zen-sources kernel fixes this

Offline

#30 2008-03-15 12:59:28

Bestiapeluda
Member
From: Buenos Aires, Argentina
Registered: 2007-10-16
Posts: 181

Re: World of Warcraft FPS drop every 15 seconds.

ok ill try it today

sad did not work

Last edited by Bestiapeluda (2008-03-17 18:29:24)

Offline

#31 2008-03-17 07:18:39

Slash
Member
Registered: 2005-04-19
Posts: 66
Website

Re: World of Warcraft FPS drop every 15 seconds.

I had the same problem. Like vor_lord says, all you have to do is rebuild kernel26 with ABS. Run "abs" as root. Copy the /var/abs/core/base/kernel26/ directory to somewhere in your normal user's home directory. Open the file "config" in a text editor of choice. Find the line that says:

# CONFIG_SCHED_DEBUG is not set

Replace with:

CONFIG_SCHED_DEBUG=y

Type "makepkg". Wait. Once it's done building, install it as root (or sudo) with pacman -U. As root, add this to /etc/sysctl.conf:

# Scheduler Variables to stop freezes every 15 seconds under wine+WoW
kernel.sched_features=21
kernel.sched_batch_wakeup_granularity_ns=25000000
kernel.sched_min_granularity_ns=4000000

Then reboot into teh newly built kernel. Worked for me smile

Last edited by Slash (2008-03-17 07:24:09)

Offline

#32 2008-03-17 18:30:32

Bestiapeluda
Member
From: Buenos Aires, Argentina
Registered: 2007-10-16
Posts: 181

Re: World of Warcraft FPS drop every 15 seconds.

thank you slash it worked !!!!
where can i find info about the options i just changed ?

Offline

#33 2008-03-17 19:46:41

Slash
Member
Registered: 2005-04-19
Posts: 66
Website

Re: World of Warcraft FPS drop every 15 seconds.

Not sure. shazeal is who figured out that those are the options that changed with the scheduler between kernel 2.6.23 and 2.6.24. As to specifically what each one does, I have no idea smile

shazeal wrote:

I did some playing around and enabled SCHED_DEBUG in both 2.6.23 and 2.6.24 the problem is with the tunables in 2.6.24.

2.6.23 Tunables

kernel.sched_features=21
kernel.sched_batch_wakeup_granularity_ns=25000000
kernel.sched_min_granularity_ns=4000000

2.6.24 Tunables

kernel.sched_features=7
kernel.sched_batch_wakeup_granularity_ns=20000000
kernel.sched_min_granularity_ns=8000000

Setting the 2.6.24 tunables using sysctl to match the 2.6.23 ones solves the issue.

Offline

#34 2008-03-20 19:31:41

nico1818
Member
Registered: 2007-06-25
Posts: 7

Re: World of Warcraft FPS drop every 15 seconds.

Bestiapeluda wrote:

thank you slash it worked !!!!
where can i find info about the options i just changed ?

This article:

http://www.ibm.com/developerworks/linux/library/l-cfs/

introduces how the CFS scheduler works and explains briefly the runtime tunables. It is quite technical but interesting.

Offline

#35 2008-03-21 04:01:00

jeebusroxors
Member
Registered: 2005-10-26
Posts: 58
Website

Re: World of Warcraft FPS drop every 15 seconds.

Mark down another success for this fix. I'm still having the stuck key issue in the other thread. No fixes for that yet?


There's no place like 127.0.0.1

Offline

#36 2008-04-23 12:20:24

Bestiapeluda
Member
From: Buenos Aires, Argentina
Registered: 2007-10-16
Posts: 181

Re: World of Warcraft FPS drop every 15 seconds.

The problem persists in 2.6.25. Ill have to recompile this one too.

Offline

#37 2008-07-22 20:15:47

Themaister
Member
From: Trondheim, Norway
Registered: 2008-07-21
Posts: 652
Website

Re: World of Warcraft FPS drop every 15 seconds.

Slash wrote:

I had the same problem. Like vor_lord says, all you have to do is rebuild kernel26 with ABS. Run "abs" as root. Copy the /var/abs/core/base/kernel26/ directory to somewhere in your normal user's home directory. Open the file "config" in a text editor of choice. Find the line that says:

# CONFIG_SCHED_DEBUG is not set

Replace with:

CONFIG_SCHED_DEBUG=y

Type "makepkg". Wait. Once it's done building, install it as root (or sudo) with pacman -U. As root, add this to /etc/sysctl.conf:

# Scheduler Variables to stop freezes every 15 seconds under wine+WoW
kernel.sched_features=21
kernel.sched_batch_wakeup_granularity_ns=25000000
kernel.sched_min_granularity_ns=4000000

Then reboot into teh newly built kernel. Worked for me smile

Wow, this worked! The bug is still present with newest kernel, so I thought I'd bump it smile
One thing, I had to remove md5sum in the PKGBUILD to accept the modified config file though. (Maybe that's common, dunno.)

Last edited by Themaister (2008-07-22 20:16:42)

Offline

#38 2008-07-23 19:16:07

mockfrog
Member
From: Hamburg / Germany
Registered: 2005-09-06
Posts: 8
Website

Re: World of Warcraft FPS drop every 15 seconds.

I just disabled my idle loop fix, and tried again with standard kernel26 2.6.25.11-1 and it seems i can't reproduce the glitch any longer big_smile

Dunno why. Either the newer kernel did the trick or the last patch from Blizzard fixed the problem somehow.
I am going to downgrade my system to a known bad kernel and look if it comes back.

edit:
nope. problem vanished, even with old kernel, nvidia and wine.

Last edited by mockfrog (2008-07-23 20:23:49)


while (! asleep)
   ++sheep;

Offline

#39 2008-07-25 15:40:22

az7
Member
Registered: 2008-07-24
Posts: 5

Re: World of Warcraft FPS drop every 15 seconds.

Using Slash's fix, I've copied /var/abs/core/kernel26 to my home directory and replaced "# CONFIG_SCHED_DEBUG is not set" with  "CONFIG_SCHED_DEBUG=y".  When I run makepkg I get the error "ERROR:  One or more files did not pass the validity check!"  Any ideas?

Offline

#40 2008-07-25 15:47:00

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: World of Warcraft FPS drop every 15 seconds.

Just comment out the md5sum array or update it after running makepkg -g.

Offline

#41 2008-07-25 21:33:15

az7
Member
Registered: 2008-07-24
Posts: 5

Re: World of Warcraft FPS drop every 15 seconds.

I edited the PKGBUILD file and commented out the md5 array, worked great.  Thanks.

Offline

#42 2008-07-26 00:27:10

Themaister
Member
From: Trondheim, Norway
Registered: 2008-07-21
Posts: 652
Website

Re: World of Warcraft FPS drop every 15 seconds.

Bah tongue Thought this was fixed in 2.6.26 but no :\ Recompiling kernel ftl =P IgnorePkg = kernel26 here we go ...

Offline

#43 2008-07-29 11:29:52

asmodaous
Member
From: Austin, TX
Registered: 2008-07-29
Posts: 19

Re: World of Warcraft FPS drop every 15 seconds.

Is there a step by step guide to fixing the CFS Scheduler. I am a newbie to Arch Linux and don't have a clue as to how to recompile. Overall I really like this Distro, just switched from Ubuntu after using that and linux for the first time 2 months ago and I'm learning tons of stuff, but for the most part when I am reading thread it's explained as if I should already know how to do most of this stuff. Eventually that will happen but there are still  those of us who have to crawl before we walk. big_smilecool

Offline

#44 2008-07-30 07:33:10

nesrecar
Member
From: Germany/Munich
Registered: 2004-06-06
Posts: 79

Re: World of Warcraft FPS drop every 15 seconds.

I'll put a package in AUR that replaces kernel26, asmodaous.

Last edited by nesrecar (2008-07-30 07:40:21)


Public Key 0x24685E35 available from any key server you trust.

IRC: ssimon/Nesrecar

Offline

#45 2008-07-30 09:55:49

nesrecar
Member
From: Germany/Munich
Registered: 2004-06-06
Posts: 79

Re: World of Warcraft FPS drop every 15 seconds.

Should work without problems:

http://aur.archlinux.org/packages.php?ID=18724

Install file includes the information for sysctl.conf


Public Key 0x24685E35 available from any key server you trust.

IRC: ssimon/Nesrecar

Offline

#46 2008-07-30 22:59:40

Slash
Member
Registered: 2005-04-19
Posts: 66
Website

Re: World of Warcraft FPS drop every 15 seconds.

There is kernel26-wow, as well: http://aur.archlinux.org/packages.php?ID=17195

One of these should probably be deleted tongue

Offline

#47 2008-07-31 00:09:39

asmodaous
Member
From: Austin, TX
Registered: 2008-07-29
Posts: 19

Re: World of Warcraft FPS drop every 15 seconds.

How do yo install the knew kernel26? Do you use any programs to do it? I have been reading about ABS is that something:) that I use and if so how? What are the commands for it?

Offline

#48 2008-07-31 05:41:45

nesrecar
Member
From: Germany/Munich
Registered: 2004-06-06
Posts: 79

Re: World of Warcraft FPS drop every 15 seconds.

Slash wrote:

There is kernel26-wow, as well: http://aur.archlinux.org/packages.php?ID=17195

One of these should probably be deleted tongue

Haha, indeed. Will keep it in AUR until kernel26-wow will be updated.

asmodaous:

1) wget everything in a directory: http://aur.archlinux.org/packages/kerne … -fixedcfs/
2) do a makepkg
3) wait until package is built
4) pacman -U $package
5) follow the instructions which appear


Public Key 0x24685E35 available from any key server you trust.

IRC: ssimon/Nesrecar

Offline

#49 2008-07-31 07:33:41

asmodaous
Member
From: Austin, TX
Registered: 2008-07-29
Posts: 19

Re: World of Warcraft FPS drop every 15 seconds.

Ok I just tried to update the kernel and I keep getting this messsage.....


[root@patrick-laptop kernel26-wow]# pacman -U kernel26-wow-2.6.25.4-2-i686.pkg.tar.gz
loading package data...
checking dependencies...
error: replacing packages with -A and -U is not supported yet
error: you can replace packages manually using -Rd and -U
error: failed to prepare transaction (conflicting dependencies)
:: kernel26-wow: conflicts with kernel26

Offline

#50 2008-07-31 07:40:22

nesrecar
Member
From: Germany/Munich
Registered: 2004-06-06
Posts: 79

Re: World of Warcraft FPS drop every 15 seconds.

Then remove it.

Please read this also: http://wiki.archlinux.org/index.php/Pac … g_Packages

Last edited by nesrecar (2008-07-31 07:40:47)


Public Key 0x24685E35 available from any key server you trust.

IRC: ssimon/Nesrecar

Offline

Board footer

Powered by FluxBB