[snap] Allow chromium snap to access Pressure Stall Information (PSI)

Bug #2058881 reported by Haw Loeung
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
chromium-browser (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Hi,

Currently seeing this:

| Mar 25 16:12:23 dharkan.local kernel: audit: type=1400 audit(1711343543.539:657): apparmor="DENIED" operation="open" class="file" profile="snap.chromium.chromium" name="/proc/pressure/cpu" pid=63335 comm="ThreadPoolForeg" requested_mask="r" denied_mask="r" fsuid=3134 ouid=0
| Mar 25 16:12:23 dharkan.local kernel: audit: type=1400 audit(1711343543.539:658): apparmor="DENIED" operation="open" class="file" profile="snap.chromium.chromium" name="/proc/pressure/io" pid=63335 comm="ThreadPoolForeg" requested_mask="r" denied_mask="r" fsuid=3134 ouid=0
| Mar 25 16:12:23 dharkan.local kernel: audit: type=1400 audit(1711343543.539:659): apparmor="DENIED" operation="open" class="file" profile="snap.chromium.chromium" name="/proc/pressure/memory" pid=63335 comm="ThreadPoolForeg" requested_mask="r" denied_mask="r" fsuid=3134 ouid>

It seems the AppAmor profile should be updated to allow Chromium access to the pressure stall information for it to monitor and manage it's processes?

Tags: log-noise
Revision history for this message
Nathan Teodosio (nteodosio) wrote : Re: [Bug 2058881] [NEW] [snap] Allow chromium snap to access Pressure Stall Information (PSI)

Hello, do you have a reproduction case? I don't get this when I launch
Chromium, does it try that when on heavy load?

Revision history for this message
Haw Loeung (hloeung) wrote :

Sorry, I should have mentioned the version. I'm using the chromium from the candidate channel:

| $ snap info chromium | grep installed
| installed: 123.0.6312.58 (2795) 168MB -

Seems to be happening every 10 mins.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in chromium-browser (Ubuntu):
status: New → Confirmed
Revision history for this message
Haw Loeung (hloeung) wrote :
Revision history for this message
Nathan Teodosio (nteodosio) wrote : Re: [Bug 2058881] Re: [snap] Allow chromium snap to access Pressure Stall Information (PSI)

I reproduced that now.

Do you observe any problem or hindrance as a result of those denials?

I had a look at the source code and it seems that it doesn't actually
use that information for load balancing or anything of the sorts, but
actually only for informational purposes, namely for assembling
histograms and reporting the results to the so called UMA, User Metrics
Analysis according to the developer's glossary, for instance if the user
chooses to report a session crash back to Google.

Changed in chromium-browser (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Haw Loeung (hloeung) wrote :

I've not observed any problems or hindrance as a result of these denials, no.

Just more noise and thought maybe Chromium was going to use the pressure stall information for something useful like for the selection of which tabs/process to kill off when the system is experiencing pressure in either CPU, I/O, and/or memory.

But all good if it does not and it does not plan to.

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :

Spamming three lines to dmesg every 10 minutes forever is pretty intolerable. Please fix this regression.

Changed in chromium-browser (Ubuntu):
importance: Wishlist → Low
tags: added: log-noise
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.