https://bugs.kde.org/show_bug.cgi?id=441910
Bug ID: 441910
Summary: plasmashell re-reads zoneinfo file many times every
second
Product: plasmashell
Version: 5.18.6
Platform: openSUSE RPMs
OS: Linux
Status: REPORTED
Severity: minor
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: 1.0
SUMMARY
plasmashell process reads the /usr/share/zoneinfo/{MY_AREA}/{MY_CITY} file
20-40 times per second, which creates unnecessary extra load to the hard drive.
STEPS TO REPRODUCE
1. run: "sudo timeout 3s fatrace -p PID_OF_PLASMASHELL 2>&1 | grep R | wc -l"
- see about 100 reads every 3 seconds (~30 per second)
2. run: "sudo timeout 3s strace -v -f -T -y -p PID_OF_PLASMASHELL 2>&1 | grep
zoneinfo | grep 'read(' | grep ' = 0 ' | wc -l"
- see about 120 reads every 3 seconds (~40 per second)
OBSERVED RESULT
strace logs are flooded with "read(46</usr/share/zoneinfo/{MY_AREA}/{MY_CITY}"
lines.
EXPECTED RESULT
I think plasmashell should read this file only once when being started, and one
more time if the current timezone is changed by the user.
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Leap 15.2 distro
KDE Plasma Version: 5.18.6
KDE Frameworks Version: 5.71.0
Qt Version: 5.12.7
ADDITIONAL INFORMATION
--
You are receiving this mail because:
You are watching all bug changes.