You are not logged in.

#1 2010-03-08 20:38:45

Lazze
Member
From: Bangkok, Thailand
Registered: 2008-09-28
Posts: 133

X process high CPU usage

Hello

I've quite recently installed openbox for the first time after trying out a couple of DE's and window managers. So far I like it, but I've recently got some problem with the X process taking a lot of CPU and it lags when doing stuff in the GUI, like moving windows and such.

The problem isn't always there, it starts after using the computer for a while, maybe an hour or so. And if I restart X it disappears again for another hour. I'm not sure why the problem occurs. I suspect it might be related to my sshfs mount, which I'm working against quite a lot, I got the suspicion since I don't think I had the problem before I've set up the sshfs.

I'm also running xcompmgr, but I've tried without, but the issues still appears.

Any ideas what could cause this problem?

Thanks
// Lasse

Offline

#2 2010-03-08 20:45:35

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: X process high CPU usage

Post your Xorg.0.log.
What video driver do you use?

Last edited by n0dix (2010-03-08 20:46:04)

Offline

#3 2010-03-08 20:53:29

Lazze
Member
From: Bangkok, Thailand
Registered: 2008-09-28
Posts: 133

Re: X process high CPU usage

I'm using the NVIDIA driver, It seems to run fine, if I try glxgears after X starts to get sluggish I still get about 20k fps.

Here's my Xorg.0.log:

X.Org X Server 1.7.5
Release Date: 2010-02-16
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32-ARCH x86_64 
Current Operating System: Linux Kazoum-VIII 2.6.32-ARCH #1 SMP PREEMPT Tue Feb 23 19:43:46 CET 2010 x86_64
Kernel command line: root=/dev/disk/by-uuid/bd85585b-ddbe-4a2f-ac5a-c85618274be2 ro vga=795
Build Date: 17 February 2010  07:57:38PM
 
Current version of pixman: 0.16.6
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Mar  8 20:03:53 2010
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "X.org Configured"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Device0"
(**) |-->Screen "Screen1" (1)
(**) |   |-->Monitor "Monitor1"
(**) |   |-->Device "Device1"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(**) Option "Xinerama" "0"
(==) Automatically adding devices
(==) Automatically enabling devices
(**) FontPath set to:
    /usr/share/fonts/misc,
    /usr/share/fonts/100dpi:unscaled,
    /usr/share/fonts/75dpi:unscaled,
    /usr/share/fonts/TTF,
    /usr/share/fonts/Type1,
    /usr/share/fonts/misc,
    /usr/share/fonts/100dpi:unscaled,
    /usr/share/fonts/75dpi:unscaled,
    /usr/share/fonts/TTF,
    /usr/share/fonts/Type1
(**) ModulePath set to "/usr/lib/xorg/modules"
(WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
(WW) Disabling Mouse0
(WW) Disabling Keyboard0
(II) Loader magic: 0x7c0fa0
(II) Module ABI versions:
    X.Org ANSI C Emulation: 0.4
    X.Org Video Driver: 6.0
    X.Org XInput driver : 7.0
    X.Org Server Extension : 2.0
(--) using VT number 8

(--) PCI:*(0:3:0:0) 10de:0612:1682:2373 nVidia Corporation G92 [GeForce 9800 GTX] rev 162, Mem @ 0xfa000000/16777216, 0xc0000000/536870912, 0xf8000000/33554432, I/O @ 0x0000ac00/128, BIOS @ 0x????????/131072
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
(II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
(II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
(II) "glx" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri" will be loaded by default.
(II) "dri2" will be loaded. This was enabled by default and also specified in the config file.
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
    compiled for 1.7.5, module version = 1.0.0
    Module class: X.Org Server Extension
    ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
    compiled for 4.0.2, module version = 1.0.0
    Module class: X.Org Server Extension
(II) NVIDIA GLX Module  195.36.08  Thu Feb 25 04:50:39 PST 2010
(II) Loading extension GLX
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
    compiled for 1.7.5, module version = 1.0.0
    Module class: X.Org Server Extension
    ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "dri2"
(II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
    compiled for 1.7.5, module version = 1.1.0
    ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
    compiled for 1.7.5, module version = 1.0.0
    ABI class: X.Org Server Extension, version 2.0
(II) Loading extension XFree86-DRI
(II) LoadModule: "nvidia"
(II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
(II) Module nvidia: vendor="NVIDIA Corporation"
    compiled for 4.0.2, module version = 1.0.0
    Module class: X.Org Video Driver
(II) NVIDIA dlloader X Driver  195.36.08  Thu Feb 25 04:18:36 PST 2010
(II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
(II) Primary Device is: PCI 03@00:00:0
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/lib/xorg/modules/libfb.so
(II) Module fb: vendor="X.Org Foundation"
    compiled for 1.7.5, module version = 1.0.0
    ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "wfb"
(II) LoadModule: "wfb"
(II) Loading /usr/lib/xorg/modules/libwfb.so
(II) Module wfb: vendor="X.Org Foundation"
    compiled for 1.7.5, module version = 1.0.0
    ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "TwinView" "0"
(**) NVIDIA(0): Option "MetaModes" "DFP-0: nvidia-auto-select +0+0"
(**) Mar 08 20:03:54 NVIDIA(0): Enabling RENDER acceleration
(II) Mar 08 20:03:54 NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) Mar 08 20:03:54 NVIDIA(0):     enabled.
(II) Mar 08 20:03:54 NVIDIA(0): NVIDIA GPU GeForce 9800 GTX/9800 GTX+ (G92) at PCI:3:0:0
(II) Mar 08 20:03:54 NVIDIA(0):     (GPU-0)
(--) Mar 08 20:03:54 NVIDIA(0): Memory: 524288 kBytes
(--) Mar 08 20:03:54 NVIDIA(0): VideoBIOS: 62.92.62.00.0b
(II) Mar 08 20:03:54 NVIDIA(0): Detected PCI Express Link width: 16X
(--) Mar 08 20:03:54 NVIDIA(0): Interlaced video modes are supported on this GPU
(--) Mar 08 20:03:54 NVIDIA(0): Connected display device(s) on GeForce 9800 GTX/9800 GTX+ at
(--) Mar 08 20:03:54 NVIDIA(0):     PCI:3:0:0:
(--) Mar 08 20:03:54 NVIDIA(0):     Samsung SyncMaster (DFP-0)
(--) Mar 08 20:03:54 NVIDIA(0):     OPTi Optoma HD65 (DFP-1)
(--) Mar 08 20:03:54 NVIDIA(0): Samsung SyncMaster (DFP-0): 330.0 MHz maximum pixel clock
(--) Mar 08 20:03:54 NVIDIA(0): Samsung SyncMaster (DFP-0): Internal Dual Link TMDS
(--) Mar 08 20:03:54 NVIDIA(0): OPTi Optoma HD65 (DFP-1): 330.0 MHz maximum pixel clock
(--) Mar 08 20:03:54 NVIDIA(0): OPTi Optoma HD65 (DFP-1): Internal Dual Link TMDS
(II) Mar 08 20:03:54 NVIDIA(0): Display Device found referenced in MetaMode: DFP-0
(II) Mar 08 20:03:54 NVIDIA(0): Assigned Display Device: DFP-0
(II) Mar 08 20:03:54 NVIDIA(0): Validated modes:
(II) Mar 08 20:03:54 NVIDIA(0):     "DFP-0:nvidia-auto-select+0+0"
(II) Mar 08 20:03:54 NVIDIA(0): Virtual screen size determined to be 1920 x 1200
(--) Mar 08 20:03:54 NVIDIA(0): DPI set to (93, 95); computed from "UseEdidDpi" X config
(--) Mar 08 20:03:54 NVIDIA(0):     option
(==) Mar 08 20:03:54 NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
(**) NVIDIA(1): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(1): RGB weight 888
(==) NVIDIA(1): Default visual is TrueColor
(==) NVIDIA(1): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(1): Option "TwinView" "0"
(**) NVIDIA(1): Option "MetaModes" "DFP-1: 1280x720 +0+0"
(**) Mar 08 20:03:54 NVIDIA(1): Enabling RENDER acceleration
(II) Mar 08 20:03:54 NVIDIA(1): NVIDIA GPU GeForce 9800 GTX/9800 GTX+ (G92) at PCI:3:0:0
(II) Mar 08 20:03:54 NVIDIA(1):     (GPU-0)
(--) Mar 08 20:03:54 NVIDIA(1): Memory: 524288 kBytes
(--) Mar 08 20:03:54 NVIDIA(1): VideoBIOS: 62.92.62.00.0b
(II) Mar 08 20:03:54 NVIDIA(1): Detected PCI Express Link width: 16X
(--) Mar 08 20:03:54 NVIDIA(1): Interlaced video modes are supported on this GPU
(--) Mar 08 20:03:54 NVIDIA(1): Connected display device(s) on GeForce 9800 GTX/9800 GTX+ at
(--) Mar 08 20:03:54 NVIDIA(1):     PCI:3:0:0:
(--) Mar 08 20:03:54 NVIDIA(1):     Samsung SyncMaster (DFP-0)
(--) Mar 08 20:03:54 NVIDIA(1):     OPTi Optoma HD65 (DFP-1)
(--) Mar 08 20:03:54 NVIDIA(1): Samsung SyncMaster (DFP-0): 330.0 MHz maximum pixel clock
(--) Mar 08 20:03:54 NVIDIA(1): Samsung SyncMaster (DFP-0): Internal Dual Link TMDS
(--) Mar 08 20:03:54 NVIDIA(1): OPTi Optoma HD65 (DFP-1): 330.0 MHz maximum pixel clock
(--) Mar 08 20:03:54 NVIDIA(1): OPTi Optoma HD65 (DFP-1): Internal Dual Link TMDS
(II) Mar 08 20:03:54 NVIDIA(1): Display Device found referenced in MetaMode: DFP-1
(II) Mar 08 20:03:54 NVIDIA(1): Assigned Display Device: DFP-1
(II) Mar 08 20:03:54 NVIDIA(1): Validated modes:
(II) Mar 08 20:03:54 NVIDIA(1):     "DFP-1:1280x720+0+0"
(II) Mar 08 20:03:54 NVIDIA(1): Virtual screen size determined to be 1280 x 720
(WW) Mar 08 20:03:54 NVIDIA(1): OPTi Optoma HD65 (DFP-1)'s EDID does not contain a maximum
(WW) Mar 08 20:03:54 NVIDIA(1):     image size; cannot compute DPI from OPTi Optoma HD65
(WW) Mar 08 20:03:54 NVIDIA(1):     (DFP-1)'s EDID.
(==) Mar 08 20:03:54 NVIDIA(1): DPI set to (75, 75); computed from built-in default
(==) Mar 08 20:03:54 NVIDIA(1): Enabling 32-bit ARGB GLX visuals.
(--) Depth 24 pixmap format is 32 bpp
(II) Mar 08 20:03:54 NVIDIA: Using 768.00 MB of virtual memory for indirect framebuffer
(II) Mar 08 20:03:54 NVIDIA:     access.
(II) Mar 08 20:03:54 NVIDIA(0): Initialized GPU GART.
(II) Mar 08 20:03:54 NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
(II) Mar 08 20:03:54 NVIDIA(0):     may not be running or the "AcpidSocketPath" X
(II) Mar 08 20:03:54 NVIDIA(0):     configuration option may not be set correctly.  When the
(II) Mar 08 20:03:54 NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
(II) Mar 08 20:03:54 NVIDIA(0):     try to use it to receive ACPI event notifications.  For
(II) Mar 08 20:03:54 NVIDIA(0):     details, please see the "ConnectToAcpid" and
(II) Mar 08 20:03:54 NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
(II) Mar 08 20:03:54 NVIDIA(0):     Config Options in the README.
(II) Mar 08 20:03:54 NVIDIA(0): Setting mode "DFP-0:nvidia-auto-select+0+0"
(II) Loading extension NV-GLX
(II) Mar 08 20:03:54 NVIDIA(0): Initialized OpenGL Acceleration
(==) NVIDIA(0): Disabling shared memory pixmaps
(II) Mar 08 20:03:54 NVIDIA(0): Initialized X Rendering Acceleration
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(==) NVIDIA(0): DPMS enabled
(II) Loading extension NV-CONTROL
(II) Loading extension XINERAMA
(==) RandR enabled
(II) Mar 08 20:03:54 NVIDIA(1): Initialized GPU GART.
(II) Mar 08 20:03:54 NVIDIA(1): ACPI: failed to connect to the ACPI event daemon; the daemon
(II) Mar 08 20:03:54 NVIDIA(1):     may not be running or the "AcpidSocketPath" X
(II) Mar 08 20:03:54 NVIDIA(1):     configuration option may not be set correctly.  When the
(II) Mar 08 20:03:54 NVIDIA(1):     ACPI event daemon is available, the NVIDIA X driver will
(II) Mar 08 20:03:54 NVIDIA(1):     try to use it to receive ACPI event notifications.  For
(II) Mar 08 20:03:54 NVIDIA(1):     details, please see the "ConnectToAcpid" and
(II) Mar 08 20:03:54 NVIDIA(1):     "AcpidSocketPath" X configuration options in Appendix B: X
(II) Mar 08 20:03:54 NVIDIA(1):     Config Options in the README.
(II) Mar 08 20:03:54 NVIDIA(1): Setting mode "DFP-1:1280x720+0+0"
(II) Mar 08 20:03:54 NVIDIA(1): Initialized OpenGL Acceleration
(==) NVIDIA(1): Disabling shared memory pixmaps
(II) Mar 08 20:03:54 NVIDIA(1): Initialized X Rendering Acceleration
(==) NVIDIA(1): Backing store disabled
(==) NVIDIA(1): Silken mouse enabled
(==) NVIDIA(1): DPMS enabled
(==) RandR enabled
(II) Initializing built-in extension Generic Event Extension
(II) Initializing built-in extension SHAPE
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension BIG-REQUESTS
(II) Initializing built-in extension SYNC
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XC-MISC
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) Initializing extension GLX
(II) config/hal: Adding input device Macintosh mouse button emulation
(II) LoadModule: "evdev"
(II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
(II) Module evdev: vendor="X.Org Foundation"
    compiled for 1.7.3, module version = 2.3.2
    Module class: X.Org XInput Driver
    ABI class: X.Org XInput driver, version 7.0
(**) Macintosh mouse button emulation: always reports core events
(**) Macintosh mouse button emulation: Device: "/dev/input/event0"
(II) Macintosh mouse button emulation: Found 3 mouse buttons
(II) Macintosh mouse button emulation: Found relative axes
(II) Macintosh mouse button emulation: Found x and y relative axes
(II) Macintosh mouse button emulation: Configuring as mouse
(**) Macintosh mouse button emulation: YAxisMapping: buttons 4 and 5
(**) Macintosh mouse button emulation: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Macintosh mouse button emulation" (type: MOUSE)
(**) Macintosh mouse button emulation: (accel) keeping acceleration scheme 1
(**) Macintosh mouse button emulation: (accel) acceleration profile 0
(II) Macintosh mouse button emulation: initialized for relative axes.
(II) config/hal: Adding input device Apple, Inc Apple Keyboard
(**) Apple, Inc Apple Keyboard: always reports core events
(**) Apple, Inc Apple Keyboard: Device: "/dev/input/event6"
(II) Apple, Inc Apple Keyboard: Found keys
(II) Apple, Inc Apple Keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "Apple, Inc Apple Keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(II) config/hal: Adding input device Apple, Inc Apple Keyboard
(**) Apple, Inc Apple Keyboard: always reports core events
(**) Apple, Inc Apple Keyboard: Device: "/dev/input/event5"
(II) Apple, Inc Apple Keyboard: Found keys
(II) Apple, Inc Apple Keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "Apple, Inc Apple Keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(II) config/hal: Adding input device Microsoft Microsoft 5-Button Mouse with IntelliEye(TM)
(**) Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): always reports core events
(**) Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): Device: "/dev/input/event7"
(II) Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): Found 9 mouse buttons
(II) Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): Found scroll wheel(s)
(II) Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): Found relative axes
(II) Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): Found x and y relative axes
(II) Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): Configuring as mouse
(**) Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): YAxisMapping: buttons 4 and 5
(**) Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Microsoft Microsoft 5-Button Mouse with IntelliEye(TM)" (type: MOUSE)
(**) Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): (accel) keeping acceleration scheme 1
(**) Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): (accel) acceleration profile 0
(II) Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): initialized for relative axes.
(II) config/hal: Adding input device Power Button
(**) Power Button: always reports core events
(**) Power Button: Device: "/dev/input/event2"
(II) Power Button: Found keys
(II) Power Button: Configuring as keyboard
(II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(II) config/hal: Adding input device Power Button
(**) Power Button: always reports core events
(**) Power Button: Device: "/dev/input/event3"
(II) Power Button: Found keys
(II) Power Button: Configuring as keyboard
(II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(WW) Apple, Inc Apple Keyboard: unable to handle keycode 464

Offline

#4 2010-06-09 22:13:52

vi3dr0
Member
From: Poland
Registered: 2009-03-22
Posts: 208

Re: X process high CPU usage

Sorry for bumping old thread, but this issue is quite difficult to describe. Does it involve lack of smoothness while scrolling pages, or directories with a lot of files in file manager?


Thinkpad T61p : T7700 | 4GB RAM | nVidia FX 570M | Intel 4965
Arch64 @ Openbox

Offline

#5 2010-06-18 09:04:49

Lazze
Member
From: Bangkok, Thailand
Registered: 2008-09-28
Posts: 133

Re: X process high CPU usage

I've moved on to gnome a while ago, not because of this issue though.

The problem occurred only with actions involving the window manager, such as moving, resizing etc. The windows itself where responsive when scrolling lists etc.

I had no problem using Firefox etc. while the issue occurred.

Offline

Board footer

Powered by FluxBB