Re: [i3] window assigned workspace and high cpu usage

  • From: Simon Nagl <simonnagl@xxxxxxx>
  • To: Discussions/Questions about the i3 window manager <i3-discuss@xxxxxxxxxxxxx>
  • Date: Mon, 27 Apr 2015 20:53:44 +0200

I cannot reproduce this as well.

# i3 version 4.10.2 (2015-04-16, branch "4.10.2") ...
# Chromium 42.0.2311.90
# xorg-server 1.17.1-5

I used the config Antonio Corbi posted:

bindsym $mod+Shift+m exec "chromium"
assign [class="Chromium"] 2

Chromium opens with normal CPU usage and the workspace changes to the
right color. After finished starting up CPU usage of chromium is as low
as starting it "normal".

Do you use i3 inside of a desktop enviroment?
Maby that could help to repoduce it and locate the error?


Simon


On 27.04.2015 19:52, Ingo Bürk wrote:

I can't reproduce the CPU load with Google Chrome.
However, it seems that if I wait a little before switching to the
workspace, AdBlock dies. Makes me wonder if this is at all related.

Do you have a log file?


Ingo

On 04/27/2015 07:48 PM, Antonio-M. Corbi Bellot wrote:
Hi all,

I am currently using i3 version 4.10.2.

Since a few months I've been observing a strange behaviour in i3 when I
assign a window from emacs or chromium to a specific workspace. The
behaviour I'm describing here was also the same with i3 4.[7,8,9].x.

For example, I assign emacs to this key combination:

bindsym $mod+Shift+m exec "emacs"

And the workspace assignment is this:

assign [class="Emacs"] 2

Assuming I'm working in workspace 1, when I press $mod+Shift+m (I don't
change to ws 2 for the moment), emacs starts in workspace 2 but I see
an increment in cpu usage being the main culprits emacs (approx. 60%
cpu usage) and xorg (approx. 90% cpu usage). And this cpu usage is
sustained...it doesn't slow down until I change to workspace 2 ($mod+2)
and then I observe that emacs hasn't finished starting and in the very
moment I've changed to workspace 2 it is like it resumes execution and
it finishes starting normally. It is then that cpu usage from xorg and
emacs slow down to their normal values.

I've also observed this behaviour with chromium, no other applications
suffer from this 'strange' behaviour, i.e I use claws-mail in workspace
4 and it opens there without a glitch. Also I use glade (3.18.1) in
this way, assigned to workspace 2, and it starts nicely.

I'm not sure if it is an emacs/chromium bug or an i3 bug or even a xorg
bug, but I've observed it only with i3 and these applications.

Has anyone observed this?

Antonio Corbi.


--
Simon Nagl
________________________________________
Zieglerstraße 12
86666 Burgheim

mailto:simonnagl@xxxxxxx
Tel: 0179 403 87 61

OpenPG: A7C87E3D

Other related posts: