From nobody Mon Sep 18 16:03:31 2023 X-Original-To: freebsd-x11@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rq8jf4gZkz4tQ1N for ; Mon, 18 Sep 2023 16:03:50 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rq8jd5hTdz3R06; Mon, 18 Sep 2023 16:03:49 +0000 (UTC) (envelope-from guru@unixarea.de) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of guru@unixarea.de designates 178.254.4.101 as permitted sender) smtp.mailfrom=guru@unixarea.de; dmarc=none Received: from [188.174.63.64] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qiGis-006ocr-Ov; Mon, 18 Sep 2023 18:03:43 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.16.1/8.14.9) with ESMTPS id 38IG3WbB013550 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 18 Sep 2023 18:03:32 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.16.1/8.14.9/Submit) id 38IG3VGT013548; Mon, 18 Sep 2023 18:03:31 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Mon, 18 Sep 2023 18:03:31 +0200 From: Matthias Apitz To: Gleb Popov , kde@freebsd.org, freebsd-x11@freebsd.org Subject: Re: CPU consumtion by kglobalaccel / Xorg (was: Fwd: xorg-server-21.1.8_2,1 && key Control_L) Message-ID: Reply-To: Matthias Apitz Mail-Followup-To: Gleb Popov , kde@freebsd.org, freebsd-x11@freebsd.org References: List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 13.0-CURRENT r368166 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.63.64 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.79 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.99)[-0.993]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:178.254.4.101]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[unixarea.de]; MLMMJ_DEST(0.00)[freebsd-x11@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; HAS_REPLYTO(0.00)[guru@unixarea.de]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; HAS_XOIP(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; ARC_NA(0.00)[]; HAS_XAW(0.00)[]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Queue-Id: 4Rq8jd5hTdz3R06 El día lunes, septiembre 18, 2023 a las 11:36:17a. m. +0200, Matthias Apitz escribió: > El día lunes, septiembre 18, 2023 a las 11:08:16 +0300, Gleb Popov escribió: > > > On Mon, Sep 18, 2023 at 10:42 AM Matthias Apitz wrote: > > > > > > > > > I investigated the problem described below further and modified > > > ~/.xinitrc to not start plasma, but twm and one xterm. The issue depends > > > clearly on KDE5. On KeyPress event of Control_L the two processes > > > Xorg and kglobalaccel jump in top on the list, Xorg with 30++%. > > > > > > If one uses multiple time Control_L + TAB to rotate between the virtual > > > desktops, this is lazy at the beginning and later the requests get > > > somehow stacked nd re-played by its own like a movie. > > > > > > This is not with my older laptop installation with ports from end of > > > 2020 (which have been bleeding edge at this time). > > > > > > Should I file a bug in bugs.kde.org or is that somehow a known issue? > > > > > > Thanks > > > > Probably you have something strange bound to this shortcut. Does the > > problem exist for a newly created user (with empty ~/.config and > > ~/.cache) ? > > The trees ~/.config and ~/.cache have been copied from the 2020's system > which is still in use. But I will follow your advice and test with a > newly created user. I created a new user 'test', did login as 'test', copied my ~guru/.xinitrc to ~/.xinitrc, started KDE with 'startx' and started on the empty desktop 'Konsole' from the Application launcher and with 'Konsole' the command 'top'. Using the key 'Control_L' a few times, let's say 10 times in 10 seconds, brings the proc Xorg to 60% and kglobalaccel to 20% CPU utilization. Please let me know, if I could check something. Thanks matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub