Ticket #2079 (new defect)

Opened 3 years ago

Last modified 3 years ago

Shell opens svg icons over and over during runtime

Reported by: bernie Owned by: tomeu
Priority: Unspecified by Maintainer Milestone: Unspecified by Release Team
Component: sugar Version: Git as of bugdate
Severity: Unspecified Keywords:
Cc: Distribution/OS: Unspecified
Bug Status: Unconfirmed

Description

How to detect:

1. strace -e open -p <pid_of_shell>
2. do something, such as opening the frame, running some activities...
3. observe svg files being opened

The icons in the frame, such as the battery and zoom levels, seem to be reloaded quite often.

Do we have a bug in the icon cache logic?

Change History

in reply to: ↑ description ; follow-up: ↓ 2   Changed 3 years ago by tomeu

Replying to bernie:

How to detect:

1. strace -e open -p <pid_of_shell>
2. do something, such as opening the frame, running some activities...
3. observe svg files being opened

The icons in the frame, such as the battery and zoom levels, seem to be reloaded quite often.

Do we have a bug in the icon cache logic?

I kind of remember that the disk cache was removed from the shell because the kernel has already an I/O cache and we were duplicating it. The rationale with test results should be somewhere in dev.laptop.org and/or the mailing list.

Often-used icons should be in the surface cache so we shouldn't hit the disk unless this cache has been overflown.

in reply to: ↑ 1   Changed 3 years ago by bernie

Replying to tomeu:

I kind of remember that the disk cache was removed from the shell because the kernel has already an I/O cache and we were duplicating it. The rationale with test results should be somewhere in dev.laptop.org and/or the mailing list.

I would agree that caching the plain text is useless.

Often-used icons should be in the surface cache so we shouldn't hit the disk unless this cache has been overflown.

This is what does not seem to be working: the sugar-session process seems to be reloading icons that should stay cached. If the frame icons are purged from the cache, there's a considerable delay every time the frame is being shown.

Note: See TracTickets for help on using tickets.