View Single Post
Posts: 646 | Thanked: 1,124 times | Joined on Jul 2010 @ Espoo, Finland
#534
I was trying to look at the whole list of installed application from Warehouse -> My Profile -> View full list (on a Jolla w/ SFOS 2.0.0.10). The app was busy and didn't finish its task and show the list.
A few minutes later (when I was able to plug the phone to the desktop in order to have a better terminal) I ran a strace on the harbour-warehouse that was using 130% of CPU and 30% of RAM.
The output was a long repetition of the following excerpt:

Code:
15:00:03.344811 futex(0x4285e4f4, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable)
15:00:03.345544 futex(0x4285e4f4, FUTEX_WAKE_PRIVATE, 1) = 0
15:00:03.347497 futex(0x4285e4f4, FUTEX_WAKE_PRIVATE, 1) = 0
15:00:03.353204 futex(0x4285e4f4, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable)
15:00:03.353845 futex(0x4285e4f4, FUTEX_WAKE_PRIVATE, 1) = 0
15:00:03.358240 futex(0x4285e4f4, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable)
15:00:03.358912 futex(0x4285e4f4, FUTEX_WAKE_PRIVATE, 1) = 0
15:00:03.361140 futex(0x4285e4f4, FUTEX_WAKE_PRIVATE, 1) = 0
15:00:03.393033 futex(0x4285e4f4, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable)
15:00:03.393705 futex(0x4285e4f4, FUTEX_WAKE_PRIVATE, 1) = 0
15:00:03.395841 futex(0x4285e4f4, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable)
15:00:03.396391 futex(0x4285e4f4, FUTEX_WAKE_PRIVATE, 1) = 0
15:00:03.399626 futex(0x4285e4f4, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable)
15:00:03.400297 futex(0x4285e4f4, FUTEX_WAKE_PRIVATE, 1) = 0
15:00:03.425507 fcntl64(21, F_SETLK64, {type=F_RDLCK, whence=SEEK_SET, start=1073741824, len=1}, 0xbec35510) = 0
15:00:03.426148 fcntl64(21, F_SETLK64, {type=F_RDLCK, whence=SEEK_SET, start=1073741826, len=510}, 0xbec35510) = 0
15:00:03.427003 fcntl64(21, F_SETLK64, {type=F_UNLCK, whence=SEEK_SET, start=1073741824, len=1}, 0xbec35510) = 0
15:00:03.427766 access("/var/lib/PackageKit/desktop-files.db-journal", F_OK) = -1 ENOENT (No such file or directory)
15:00:03.428437 fstat64(21, {st_mode=S_IFREG|0644, st_size=33792, ...}) = 0
15:00:03.429047 pread(21, "\0\0\3\271\0\0\0!\0\0\0\0\0\0\0\0", 16, 24) = 16
15:00:03.429597 fstat64(21, {st_mode=S_IFREG|0644, st_size=33792, ...}) = 0
15:00:03.430482 access("/var/lib/PackageKit/desktop-files.db-wal", F_OK) = -1 ENOENT (No such file or directory)
15:00:03.431031 fstat64(21, {st_mode=S_IFREG|0644, st_size=33792, ...}) = 0
15:00:03.431977 fcntl64(21, F_SETLK64, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}, 0xbec35528) = 0
15:00:03.468876 futex(0x4285e4f4, FUTEX_WAKE_PRIVATE, 1) = 0
15:00:03.572279 futex(0x4285e4f4, FUTEX_WAKE_PRIVATE, 1) = 0
15:00:03.689905 futex(0x4285e4f4, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable)
15:00:03.690485 futex(0x4285e4f4, FUTEX_WAKE_PRIVATE, 1) = 0
15:00:03.863505 futex(0x4285e4f4, FUTEX_WAKE_PRIVATE, 1) = 1
The access() is retried every 3-4 s.
Any idea what's going on? No need to say that those .db-journal and .db-wal files indeed do no exist. Only the .db file is there.