Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] KDE - New installation is randomly laggy
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
candamil
Tux's lil' helper
Tux's lil' helper


Joined: 19 Mar 2012
Posts: 96

PostPosted: Wed Sep 16, 2015 6:35 pm    Post subject: [SOLVED] KDE - New installation is randomly laggy Reply with quote

Hi there guys. I hope you can help me with one of those random problems with no info to help you finding where the problem is :cry:

I changed recently the processor and hard drive in my laptop, and I decided to reinstall the whole system. My hardware now is as follows:

Laptop: Dell XPS15 L502X
Processor: Intel(R) Core(TM) i7-2760QM
RAM: 16 GB
Video: Intel HD 3000 + Nvidia GeForce GT 525M (Optimus NOT configured yet)
HDD: SSD (Crucial, but I don't think it matters)
WiFi: Intel Corporation Centrino Advanced-N 6230 (In case it's important)

Now, the problem itself. The previous installation went smooth, and since I went from an i5 to an i7, I though I didn't have to change anything apart from the changes in the gentoo wiki for the SSD. However, after reinstalling everything, the system is randomly laggy. It always happen when the KDE desktop is loading, when chrome is loading, sometimes randomly when a webpage is open, it happens also when I connect a USB drive and it loads the thumbnails in the files on it, it also jumps if I'm playing video content on thee web, or if I play local content using the dragon player (it doesn't happen with smplayer)...

When the system is laggy, the sound is laggy, the keyboard gets stuck in the key I'm pressing when it "jumps" and prints it twice (twwice), the mouse button misses a push if I press it right in a "jump". You can see a video of this happening here: https://www.youtube.com/watch?v=kqlLhvqjcHg

It seems to be a problem with a bus or something like that. I had a similar problem a thousand years ago with a different computer, and it was because the hard drive was not working in UDMA, but it doesn't seem to be the case now.

Now the interesting bit: I tried to disable the dbus service, which also deactivates networkmanager, consolekit and cups. This reduces the problem a lot, but something else happens. One of the cores starts working 100% with a python process. This process has to do with HPLIP, my printer manager. If I kill this process and release the processor, the problem appears again. Bus problem related to the processor? Frequency manager maybe?

I include my configuration below, in case it helps. Any hint to find the problem would be appreciated. If you have an idea about any log I can check, or if you need any other information, please let me know. /var/log/messages doesn't include new info when the system "jumps". Thank you, guys.


KDE version: 4.18.4

kernel
Code:

nomada candamil # uname -r
4.0.5-gentoo



xorg
Code:

nomada candamil # X -version

X.Org X Server 1.16.4
Release Date: 2014-12-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.0.5-gentoo x86_64 Gentoo
Current Operating System: Linux nomada 4.0.5-gentoo #1 SMP Sat Sep 12 00:26:34 BST 2015 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.0.5-gentoo root=/dev/sda3 ro
Build Date: 13 September 2015  04:54:44PM
 
Current version of pixman: 0.32.6


make.conf
Code:

nomada candamil # more /etc/portage/make.conf
#Intel core i7
CFLAGS="-march=native -mtune=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"

#Number of cores +1
MAKEOPTS="-j6"

INPUT_DEVICES="evdev synaptics"

VIDEO_CARDS="
intel
nvidia
"

LINGUAS="es"
FEATURES="parallel-fetch userfetch"

#Licenses
ACCEPT_LICENSE="
AdobeFlash-11.x
dlj-1.1 PUEL
google-chrome
Google-TOS
googleearth
Oracle-BCLA-JavaSE 
skype-eula 
TeamViewer
"


#Temp dir mounted in RAM
PORTAGE_TMPDIR="/tmp"

USE="
a52 aac aalib abi_x86_32 acpi acpicall aes alisp alsa apache2 apm apng arts avahi avx
bash-completion bidi bindist
bluetooth bzip2
cairo cdda cddb cdparanoia cdr consolekit cracklib codecs css curl cups
dbus declarative designer device-mapper dga dhcpcd directfb disk-partition dri dv dvb dvd dvdr
emacs embedded encode examples exif extras
faac fbcon ffmpeg flac flash foomaticdb fpm ftp fts3
gcj gd gif gimp glamor gnome gnome-keyring gphoto2 gpmgstreamer gtk gtk2 gtk3 gudev gzip
h224 h281 hal handbook haptic hddtemp hpcups hwdb
icu id3tag imagemagick imlib ipod ipv6
jabber java java6 javascript joystick jpeg jpeg2k
kde kdenlive kdepim kdrive kontack kpathsea
lame latex ldap libcaca libkms libnotify libsamplerate lm_sensors lock
mad matroska melt midi mime minizip mmx mmxext mng modules mono mp3 mp3tunes mp4 mpeg mplayer msn
msql mtp multilib mysql mysqli

nas ncurses netboot networkmanager nls nocd nsplugin nss nvidia
ogg opengl openmp opus oss
pam pcre16 pdf pdo php plasma png popcnt policykit pulseaudio python python_targets_python3_4
qt3support qt4 quicktime
raw rdesktop reports rss ruby_targets_ruby19
samba scanner script semantic-desktop server session setup sip sipim sna sndfile snmp sockets soprano
sound source sox speech sql sqlite sqlite3 sse sse2 sse3 sse4_1 sse4_2 ssse3 ssl startup-notification
static-libs svg svga
theora threads thunar tiff timidity tools truetype twolame
udev udisks unicode usb uxa
v4l vcd video video_cards_nouveau video_cards_nvidia video_cards_vmware videos vnc vorbis
wav wavpack webkit wifi win32 wxwidgets
X x264 x264-static xa xcb xcomposite xine xinerama xml xmlwriter xmp xosd xprint xulrunner xv xvid xvmc
zip

-dhclient
"


fstab
Code:

nomada candamil # more /etc/fstab
# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>
/dev/sda3               /               ext4            defaults,relatime,discard               0 1
tmpfs                   /tmp            tmpfs           noatime,nodiratime,size=10G     0 0

/dev/sda4               /home           ext4            defaults,relatime,discard       0 1
/dev/cdrom              /mnt/cdrom      auto            noauto,ro       0 0x



hdparm
Code:

nomada candamil # hdparm -iI /dev/sda       

/dev/sda:

 Model=Crucial_CT500MX200SSD1, FwRev=MU02, SerialNo=1528100D3ED9
 Config={ Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=unknown, MaxMultSect=16, MultSect=off
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=976773168
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
 AdvancedPM=yes: unknown setting WriteCache=enabled
 Drive conforms to: unknown:  ATA/ATAPI-3,4,5,6,7

 * signifies the current active mode


ATA device, with non-removable media
        Model Number:       Crucial_CT500MX200SSD1                 
        Serial Number:      1528100D3ED9
        Firmware Revision:  MU02   
        Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
        Used: unknown (minor revision code 0x011b)
        Supported: 10 9 8 7 6 5
        Likely used: 10
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:  268435455
        LBA48  user addressable sectors:  976773168
        Logical  Sector size:                   512 bytes
        Physical Sector size:                  4096 bytes
        Logical Sector-0 offset:                  0 bytes
        device size with M = 1024*1024:      476940 MBytes
        device size with M = 1000*1000:      500107 MBytes (500 GB)
        cache/buffer size  = unknown
        Form Factor: 2.5 inch
        Nominal Media Rotation Rate: Solid State Device
Capabilities:
        LBA, IORDY(can be disabled)
        Queue depth: 32
        Standby timer values: spec'd by Standard, with device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        Advanced power management level: 254
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    SMART feature set
           *    Power Management feature set
           *    Write cache
           *    Look-ahead
           *    WRITE_BUFFER command
           *    READ_BUFFER command
           *    NOP cmd
           *    DOWNLOAD_MICROCODE
           *    Advanced Power Management feature set
           *    48-bit Address feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
           *    General Purpose Logging feature set
           *    WRITE_{DMA|MULTIPLE}_FUA_EXT
           *    64-bit World wide name
           *    IDLE_IMMEDIATE with UNLOAD
                Write-Read-Verify feature set
           *    WRITE_UNCORRECTABLE_EXT command
           *    {READ,WRITE}_DMA_EXT_GPL commands
           *    Segmented DOWNLOAD_MICROCODE
                unknown 119[8]
           *    Gen1 signaling speed (1.5Gb/s)
           *    Gen2 signaling speed (3.0Gb/s)
           *    Gen3 signaling speed (6.0Gb/s)
           *    Native Command Queueing (NCQ)
           *    Phy event counters
           *    NCQ priority information
           *    unknown 76[15]
           *    DMA Setup Auto-Activate optimization
                Device-initiated interface power management
                Asynchronous notification (eg. media change)
           *    Software settings preservation
                unknown 78[8]
           *    SMART Command Transport (SCT) feature set
           *    SCT Write Same (AC2)
           *    SCT Features Control (AC4)
           *    SCT Data Tables (AC5)
           *    reserved 69[3]
           *    reserved 69[4]
           *    reserved 69[7]
           *    DOWNLOAD MICROCODE DMA command
           *    WRITE BUFFER DMA command
           *    READ BUFFER DMA command
           *    Data Set Management TRIM supported (limit 8 blocks)
           *    Deterministic read ZEROs after TRIM
Logical Unit WWN Device Identifier: 500a0751100d3ed9
        NAA             : 5
        IEEE OUI        : 00a075
        Unique ID       : 1100d3ed9
Checksum: correct



fdisk
Code:

nomada candamil # fdisk /dev/sda

Bienvenido a fdisk (util-linux 2.25.2).
Los cambios solo permanecerán en la memoria, hasta que decida escribirlos.
Tenga cuidado antes de utilizar la orden de escritura.


Orden (m para obtener ayuda): p
Disco /dev/sda: 465,8 GiB, 500107862016 bytes, 976773168 sectores
Unidades: sectores de 1 * 512 = 512 bytes
Tamaño de sector (lógico/físico): 512 bytes / 4096 bytes
Tamaño de E/S (mínimo/óptimo): 4096 bytes / 4096 bytes
Tipo de etiqueta de disco: dos
Identificador del disco: 0x00000001

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048   1026047   1024000   500M  7 HPFS/NTFS/exFAT
/dev/sda2         1026048 204802047 203776000  97,2G  7 HPFS/NTFS/exFAT
/dev/sda3       204802048 266242047  61440000  29,3G 83 Linux
/dev/sda4       266242048 976771071 710529024 338,8G 83 Linux


Orden (m para obtener ayuda):


lspci
Code:

nomada candamil # lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b5)
00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM67 Express Chipset Family LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 525M] (rev a1)
03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6230 [Rainbow Peak] (rev 34)
04:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)



lsusb
Code:

nomada candamil # lsusb
Bus 004 Device 003: ID 8086:0189 Intel Corp.
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 0408:2fb1 Quanta Computer, Inc.
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub



dmesg here (limit of characters in forum): https://docs.google.com/document/d/16CO5zgtKCJHRQ-6RCmE0CzCu6sVdFlYESZzjeyd8eY0/edit?usp=sharing


Last edited by candamil on Wed Sep 16, 2015 7:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
candamil
Tux's lil' helper
Tux's lil' helper


Joined: 19 Mar 2012
Posts: 96

PostPosted: Wed Sep 16, 2015 6:44 pm    Post subject: Reply with quote

OK, guys, definitely it has to do with the processor. I went to the BIOS and set the Intel SpeedStep to disabled, and the problem was reduced in a huge amount, but it didn't disappear completely. However, it doesn't happen in Windows, and as I said previously, it doesn't happen all the time, only in specific situations. Any ideas?
Back to top
View user's profile Send private message
candamil
Tux's lil' helper
Tux's lil' helper


Joined: 19 Mar 2012
Posts: 96

PostPosted: Wed Sep 16, 2015 7:45 pm    Post subject: Reply with quote

OK, guys, after fighting against it for more than 2 weeks, I solved it minutes after posting it here :P (probably I just needed to think out loud). As I thought, the problem was related to the frequency changes in the processor. I was using the old (and deprecated) X86_SPEEDSTEP_CENTRINO module. I changed it to the new alternative (X86_ACPI_CPUFREQ) and now it not only works smooth again, but also in the whole range of frequencies (apparently the minimum before was 2400 MHz, I should have realised that was wrong...).

Anyway, solved now. Thank you, guys.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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