Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
System being laggy with ondemand?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
kbzium
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2012
Posts: 146

PostPosted: Tue Oct 16, 2012 10:59 pm    Post subject: System being laggy with ondemand? Reply with quote

Hello,

my PC seem laggy in some situations (eg kde terminal scrolling down the screen) and in others don't. Up to now I didn't know why. But i came to realize, that if there is a demanding task for my cpu (core i7) to do,
there are absolutely no lags whatsoever!

The thing is I don't want that lags to happen but also making my cpu working at max freq (and voltage) all the time is not an option.

Is there anything to reduce that annoying lag? It is clearly noticeable when interacting with sliding, appearing elements (like window effects). My gpu is GTX560ti
Back to top
View user's profile Send private message
Thistled
Guru
Guru


Joined: 06 Jan 2011
Posts: 548
Location: Scotland

PostPosted: Tue Oct 16, 2012 11:12 pm    Post subject: Reply with quote

Is thermal throttling enabled in your BIOS?
Or any other settings in your BIOS which control CPU freq?
_________________
Whatever you do, do it properly!
Back to top
View user's profile Send private message
kbzium
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2012
Posts: 146

PostPosted: Wed Oct 17, 2012 6:41 am    Post subject: Reply with quote

My CPU is 28 celsius in idle, up to 52 under heavy load. So it's not that for sure. But yeah it's enabled (games on windows work just fine). I think only those intel ones and governors.
Back to top
View user's profile Send private message
s_bernstein
Apprentice
Apprentice


Joined: 11 Mar 2006
Posts: 172
Location: Bremen, Germany

PostPosted: Wed Oct 17, 2012 7:21 am    Post subject: Reply with quote

Well, you could use performance governor with an i7, because that will set the maximum frequency which will by default result in EIST changing frequencies without os support.
Back to top
View user's profile Send private message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Wed Oct 17, 2012 8:31 am    Post subject: something else Reply with quote

terminal lag is symptom of another cause nothing to do with ondemand or cpu frequencies. Terminal scrolling shouldn't need performance.

It's even worse by the fact that kde has multiple rendering choices.

Your problem is a crazy combination of KMS/Graphics driver/mesa USE flags(and whether intel uses gallium and what not)/Xorg VIDEO_CARDS flag/"eselect mesa/opengl/qtgraphicssystem"/compossiting/etc.

If u are able to sort that out the terminal lag will disappear.

No matter how many trillion cores u have and zillon frequency without proper vid/render set up things can slow down to a crawl.

I don't have time now but for troubleshooting ur prob install fluxbox and xterm and test terminal and other stuff preferebly with no kde apps. I think kde uses OpenGL ES for accel.
Back to top
View user's profile Send private message
Thistled
Guru
Guru


Joined: 06 Jan 2011
Posts: 548
Location: Scotland

PostPosted: Wed Oct 17, 2012 1:26 pm    Post subject: Reply with quote

Quote:
GTX560ti

So would the GPU not be nvidia?
Are you using the nvidia driver or an open source driver?
_________________
Whatever you do, do it properly!
Back to top
View user's profile Send private message
kbzium
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2012
Posts: 146

PostPosted: Wed Oct 17, 2012 3:00 pm    Post subject: Reply with quote

Nvidia one.

make.conf
Quote:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="-gtk -gnome gt4 kde dvd alsa cdr mmx sse sse2 apache2 scanner"
EMERGE_DEFAULT_OPTS="--jobs 8 --load-average 16"
MAKEOPTS="-j9 -l9"
PORT_LOGDIR="var/log/portage"
CLEAN_DELAY="10"
PORTAGE_NICENESS="0"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
AUTOCLEAN="yes"
VIDEO_CARDS="nouveau"
INPUT_DEVICES="evdev keyboard mouse"



Epic fail. Updating world with nvidia instead. See if it helps :)

One more thing: should I put there intel too, as I have i7 with HD2000? (or 3000 dunno)
Back to top
View user's profile Send private message
Thistled
Guru
Guru


Joined: 06 Jan 2011
Posts: 548
Location: Scotland

PostPosted: Wed Oct 17, 2012 3:17 pm    Post subject: Reply with quote

Haha. Epic fail indeed.
It happens to us all. (at some point)
If you intend to use the Intel onboard driver at some point then do indeed put "Intel" in make.conf, otherwise leave it out.
I'm sure once the nvidia-drivers are installed and you rebuild all the other things that will need rebuilt....
Code:
emerge --newuse --pretend world

You will be running without any more probs.
_________________
Whatever you do, do it properly!
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2429
Location: Canada

PostPosted: Wed Oct 17, 2012 3:59 pm    Post subject: Reply with quote

Thistled wrote:
Haha. Epic fail indeed.
It happens to us all. (at some point)
If you intend to use the Intel onboard driver at some point then do indeed put "Intel" in make.conf, otherwise leave it out.
I'm sure once the nvidia-drivers are installed and you rebuild all the other things that will need rebuilt....
Code:
emerge --newuse --pretend world

You will be running without any more probs.



Won't be so sure, I experience some lagginess on my i7 since the late spring although I do use nvidia driver. Whether it is upgrade to xorg-1.2, kernel-3, newer nvidia-drivers and KDE that all happen since,
or a combination I do not know. I tend to exclude driver related things, since my laptop with intel is not 100% happy either.

Additional example of problems include corrupted menus in gtk applications - like you open a menu and it is empty, just a frame, and you need to move a mouse for text to appear.
Happens sporadically and in wide range of applications, starting with gvim and up to firefox. I tried to change gtk engine - oxygen/Raleigh to no obvious effect.
Back to top
View user's profile Send private message
kbzium
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2012
Posts: 146

PostPosted: Wed Oct 17, 2012 7:04 pm    Post subject: Reply with quote

Yep it didn't help.
What about eselect opengl list:
Available OpenGL implementations:
[1] nvidia *
[2] xorg-x11


Should I get rid of xorg-x11? If so, how?

dmpogo you're right, same problems with context menus sometimes.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2429
Location: Canada

PostPosted: Sat Oct 20, 2012 6:44 am    Post subject: Reply with quote

kbzium wrote:
Yep it didn't help.
What about eselect opengl list:
Available OpenGL implementations:
[1] nvidia *
[2] xorg-x11


Should I get rid of xorg-x11? If so, how?

dmpogo you're right, same problems with context menus sometimes.


Don't bother trying to get rid of xorg-x11 opengl implementation. nvidia is chose and that's enough.
Back to top
View user's profile Send private message
megaflow
n00b
n00b


Joined: 11 Mar 2005
Posts: 60
Location: Maasmechelen

PostPosted: Sat Oct 20, 2012 7:06 pm    Post subject: Reply with quote

have u try tweaking ondemand setting
echo -n 15 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo -n 10 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor

https://wiki.archlinux.org/index.php/CPU_Frequency_Scaling
works for me

also i7core
_________________
----------------------------
Dell System XPS L702X/0XN71K,Intel(R) Core(TM) i7-2720QM
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum