00:04
Danct12 has joined #maemo-leste
01:02
mdz has quit [Ping timeout: 240 seconds]
01:07
xmn has joined #maemo-leste
03:22
xmn has quit [Ping timeout: 252 seconds]
04:01
leste has quit [Remote host closed the connection]
04:03
leste has joined #maemo-leste
05:11
joerg has quit [Ping timeout: 268 seconds]
05:12
joerg has joined #maemo-leste
06:04
fab_ has joined #maemo-leste
06:48
uvos__ has quit [Quit: Konversation terminated!]
07:03
fab_ has quit [Quit: fab_]
08:15
leste has quit [Remote host closed the connection]
08:30
arno11 has joined #maemo-leste
08:34
<
arno11 >
Wizzup: i found why conversations UI is randomly so slow to start: the root cause is the tracker, and it affects most qt5 apps.
08:35
<
arno11 >
disabling the tracker with 'tracker daemon -t' speeds up things a lot on the n900
08:42
<
arno11 >
(i noticed that when you launch any qt5 app, tracker-store starts immediately and uses lot of cpu for a couple of sec)
08:44
<
arno11 >
with tracker disabled, qt5 apps start really faster
08:56
arno11 has left #maemo-leste [#maemo-leste]
09:32
ungeskriptet5 has joined #maemo-leste
09:34
ungeskriptet has quit [Ping timeout: 252 seconds]
09:34
ungeskriptet5 is now known as ungeskriptet
09:47
leste has joined #maemo-leste
09:59
pere has quit [Ping timeout: 240 seconds]
10:12
DFP has joined #maemo-leste
10:19
<
Wizzup_ >
huh, why would tracker do that
11:10
arno11 has joined #maemo-leste
11:11
<
arno11 >
Wizzup: really no idea :(
11:12
<
arno11 >
but without tracker, qt5 apps start in 2-5 sec
11:13
<
Wizzup_ >
maybe it's somehow atime related
11:13
<
Wizzup_ >
do we mount with atime?
11:15
<
Wizzup_ >
probably dbus can tell us
11:15
<
Wizzup_ >
I haven't noticed this before, but I'll try to reproduce
11:16
<
arno11 >
i haven't noticed this before too
11:19
<
Wizzup_ >
freemangordon: shouldn't we use noatime?
11:19
<
Wizzup_ >
or at least lazyatime
11:21
<
Wizzup_ >
I mean relatime isn't necessarily our problem here wrt tracker, but I don't see why we would keep it enabled since we're mostly on nand/emmc
11:22
ungeskriptet5 has joined #maemo-leste
11:23
ungeskriptet has quit [Ping timeout: 256 seconds]
11:23
ungeskriptet5 is now known as ungeskriptet
11:41
arno11 has left #maemo-leste [#maemo-leste]
12:05
Livio has joined #maemo-leste
12:23
uvos has joined #maemo-leste
12:24
<
uvos >
Wizzup_: tracker uses some cpu whenever something in the tracked folders changes which it watches via inotifywait
12:24
<
uvos >
it seams that in the default configuration its watching $HOME
12:25
<
uvos >
so maybe qt touches alot of config files
12:25
<
uvos >
regarless i dont think this antivirus like behavior is sane on a phone and we should restict its scanning tightly to some media directory
12:30
<
Wizzup_ >
uvos: either that or atime
12:30
<
Wizzup_ >
but I agree probably scanning $HOME is not great
12:30
<
Wizzup_ >
I don't think it does that recursively though
12:30
<
uvos >
it somehow found random media in downloads for me
12:30
<
uvos >
so i think it dose recusevly
12:31
<
uvos >
or maybe thats from XDG places spec
12:33
<
Wizzup_ >
you can find in gsettings what it searches
12:33
<
Wizzup_ >
and yeah it does search some xdg docs/download stuff
12:38
Livio has quit [Ping timeout: 256 seconds]
12:54
xmn has joined #maemo-leste
13:28
diejuse has joined #maemo-leste
13:59
fab_ has joined #maemo-leste
14:52
fab_ has quit [Quit: fab_]
14:53
fab_ has joined #maemo-leste
14:54
narodnik is now known as genjix
15:09
genjix is now known as narodnik
15:18
<
freemangordon >
yeah, maybe we shall exclude $HOME
15:19
<
freemangordon >
Wizzup_: why would noatime affect tracker performance?
15:20
<
freemangordon >
do you think it gets inotified on a file being read?
15:20
<
freemangordon >
Wizzup_: and yes, I also think tracker does recursive scanning
15:24
<
Wizzup_ >
freemangordon: I don't know what inotify does with access time changing
15:24
<
Wizzup_ >
freemangordon:
15:24
<
Wizzup_ >
$ gsettings get org.freedesktop.Tracker.Miner.Files index-recursive-directories
15:24
<
Wizzup_ >
['&DESKTOP', '&DOCUMENTS', '&MUSIC', '&PICTURES', '&VIDEOS', '/mnt/sd/']
15:25
<
Wizzup_ >
$ gsettings get org.freedesktop.Tracker.Miner.Files index-single-directories
15:25
<
Wizzup_ >
['&DOWNLOAD']
15:25
<
Wizzup_ >
I don't see $HOME there
15:25
<
Wizzup_ >
(/mnt/sd is what I added obviously)
15:26
<
Wizzup_ >
I wonder if we awnt to play with 'throttle' and/or 'index-on-battery' perhaps
15:26
<
Wizzup_ >
we could also set enable-monitors to false, but I think the inotify thing is mostly ince
15:27
<
freemangordon >
ok, maybe we shall start miner/extractor from the shell with verbose log enabled, to check if they really do something on qt app starting
15:29
<
freemangordon >
I am suspicious about the '...is randomly so slow...' part
15:29
<
freemangordon >
it either runs every time or not
15:29
<
freemangordon >
that could be just a coincidence that tracker runs when he tried to start an app
15:37
<
freemangordon >
actually conversations is qml, and afaik qml caches shaders
15:37
<
freemangordon >
that might somehow interfere
15:38
<
Wizzup_ >
I doubt those are in any of the dirs in index-recursive-directories
15:39
fab_ has quit [Quit: fab_]
15:41
fab_ has joined #maemo-leste
15:46
pere has joined #maemo-leste
16:54
Juest has quit [Ping timeout: 240 seconds]
16:55
Juest has joined #maemo-leste
17:02
System_Error has quit [Remote host closed the connection]
17:03
System_Error has joined #maemo-leste
17:04
fab_ has quit [Quit: fab_]
17:13
uvos has quit [Remote host closed the connection]
17:21
leste has quit [Remote host closed the connection]
17:49
diejuse has quit [Quit: Client closed]
19:04
arno11 has joined #maemo-leste
19:06
<
arno11 >
freemangordon: i doubt it is a coincidence. when i say 'randomly', that's because sometimes conversations started in 8, 10, 15 or even 20 sec.
19:06
<
arno11 >
now that's 2, 4, 8 sec max
19:08
<
freemangordon >
I see
19:08
<
freemangordon >
arno11: could you start tracker processes from console with verbose debug enabled to see what's going on?
19:11
<
arno11 >
tracker daemon -s --set-log-verbosity=debug ?
19:11
<
freemangordon >
not sure
19:12
<
freemangordon >
there are several processes
19:12
<
freemangordon >
lemme check
19:17
<
freemangordon >
arno11: try first with /usr/libexec/tracker-extract -v 3
19:17
<
freemangordon >
and then immediately run some qt process
19:18
<
freemangordon >
as it will exit after 10 seconds of inactivity
19:19
<
freemangordon >
if nothing useful, then stop tracker-miner-fs and then start it by hand with /usr/libexec/tracker-miner-fs -n -v 3
19:21
<
freemangordon >
hmm, seems after all $HOME is monitored
19:21
<
freemangordon >
(tracker-miner-fs:5769): Tracker-DEBUG: 21:37:32.607: Received monitor event:3 (G_FILE_MONITOR_EVENT_CREATED) for file:'file:///home/user/orcexec.NDMv16'
19:23
<
arno11 >
(dinner time) bbiab
19:23
<
Wizzup_ >
it might be monitored but it shouldn't act on it I think
19:24
<
freemangordon >
why it is monitored if we dont act on it?
19:25
<
freemangordon >
Tracker-Message: 21:41:33.921: Setting up directories to iterate from config (IndexSingleDirectory)
19:25
<
freemangordon >
Tracker-Message: 21:41:33.921: Adding:'/home/user'
19:26
<
freemangordon >
Added monitor for path:'file:///home/user', total monitors:1
19:26
<
freemangordon >
so $HOME
*is* monitored
19:26
<
freemangordon >
and it seems qt creates a file there
19:27
<
freemangordon >
(tracker-miner-fs:4012): Tracker-DEBUG: 21:44:33.736: Processing file 'file:///home/user/orcexec.THNr5D'...
19:27
<
freemangordon >
why the hell creates file in $HOME?!?
19:27
<
freemangordon >
*qt creates
19:30
<
Wizzup_ >
what files are created there?
19:30
<
Wizzup_ >
btw, I don't think it makes sense for tracker to be this realtime with its indexing
19:30
<
Wizzup_ >
can you check your index single directory gsettings and see what they say?
19:31
<
freemangordon >
this ^^^
19:31
Gary_ has joined #maemo-leste
19:35
mdz has joined #maemo-leste
19:35
<
Wizzup_ >
freemangordon: what about your gsettings?
19:35
<
Wizzup_ >
do they list $HOME
19:37
<
Wizzup_ >
gsettings get org.freedesktop.Tracker.Miner.Files index-single-directories
19:37
<
Wizzup_ >
gsettings get org.freedesktop.Tracker.Miner.Files index-recursive-directories
19:38
<
freemangordon >
user@devuan:~$ gsettings get org.freedesktop.Tracker.Miner.Files index-single-directories
19:38
<
freemangordon >
['$HOME', '&DOWNLOAD']
19:38
<
freemangordon >
arno11: ^^^ could you check on n900
19:39
Gary__ has joined #maemo-leste
19:41
<
freemangordon >
who with his right mind creates temp files in $HOME?!?
19:41
<
Wizzup_ >
freemangordon: wow why is $HOME in there
19:41
<
Wizzup_ >
I mean for single I guess it makes sense
19:41
<
freemangordon >
ies, it is in single
19:41
<
Wizzup_ >
not sure actually
19:41
<
freemangordon >
*yes
19:42
<
Wizzup_ >
in any case, maybe arno can remove the entry from his gsettings and see if it solves the problem
19:42
<
freemangordon >
I don;t think it should be there
19:42
<
freemangordon >
mhm
19:42
<
freemangordon >
this is the default I guess
19:42
<
freemangordon >
we can fix it
19:42
<
Wizzup_ >
honestly to me it seems like we should set a 'crawling-interval' and disable enable-monitors
19:42
<
Wizzup_ >
and maybe see that the 'throttle' key does
19:42
<
freemangordon >
no, please, why?
19:43
<
Wizzup_ >
( gsettings list-keys org.freedesktop.Tracker.Miner.Files )
19:43
Gary_ has quit [Ping timeout: 260 seconds]
19:43
<
Wizzup_ >
why, well, because it seems to in general wreak havoc on n900
19:44
<
freemangordon >
if we don;t monitor $HOME it should be better
19:44
<
Wizzup_ >
hopefully
19:44
<
Wizzup_ >
but this could very well be why things are slow(er) during boot too
19:44
<
freemangordon >
and I prefer to have my music files indexed ASAP, not in 2 hours
19:46
<
freemangordon >
mhm
19:48
<
Wizzup_ >
throttle is set to 0 by default (bad)
19:48
<
Wizzup_ >
I suggest we set initial-sleep to something like 600 (seconds), it's currently 15
19:48
<
freemangordon >
agree
19:49
<
freemangordon >
well, 600 is kinda extreme
19:49
<
Wizzup_ >
it's only 10 minutes
19:49
<
Wizzup_ >
but fine, something high enough at least
19:49
<
freemangordon >
yes, lets make it 2 minutes initially
19:49
<
Wizzup_ >
I think that's not enough for n900 to boot
19:49
<
freemangordon >
we can increase it further
19:50
<
Wizzup_ >
I'd rather make it long first and then decrease if we find the boots are much better
19:50
<
freemangordon >
right, but combined with throttle will help
19:50
<
Wizzup_ >
it might also make sense to set this to true:
19:50
<
Wizzup_ >
gsettings get org.freedesktop.Tracker.Extract wait-for-miner-fs
19:51
<
Wizzup_ >
also, the issue report I mentioned mentions tracker3, which I think we are not on yet
19:53
<
Wizzup_ >
I guess I must have removed it myself
19:53
<
freemangordon >
mhm
19:53
<
freemangordon >
but still, I don;t see why temp files shall be created in $HOME
19:54
<
Wizzup_ >
I can see why, many systems have some tmpfs set to noexec
19:55
<
Wizzup_ >
whereas that is unlikely for something in home, but you'd still expect it to maybe go in .cache or something
19:55
<
freemangordon >
mhm
19:55
<
Wizzup_ >
arno11: let us know when you're back, I think changing some settings will make all the difference
20:03
<
freemangordon >
I'd recommend to try changing throttle first
20:10
<
Wizzup_ >
and remove home, initial sleep..
20:10
<
arno11 >
Wizzup: back
20:12
<
freemangordon >
it should create in XDG_RUNTIME_DIR, not in HOME
20:16
<
arno11 >
i'm ready if you want me to change some settings
20:19
<
freemangordon >
Wizzup_: ^^^
20:20
System_Error has quit [Remote host closed the connection]
20:21
System_Error has joined #maemo-leste
20:24
<
Wizzup_ >
arno11: maybe try to set
20:24
<
Wizzup_ >
gsettings set org.freedesktop.Tracker.Miner.Files throttle 20
20:24
<
Wizzup_ >
gsettings set org.freedesktop.Tracker.Miner.Files initial-sleep 300
20:24
<
Wizzup_ >
gsettings set org.freedesktop.Tracker.Extract wait-for-miner-fs true
20:24
<
Wizzup_ >
and maybe remove the HOME entry from:
20:24
<
Wizzup_ >
gsettings get org.freedesktop.Tracker.Miner.Files index-single-directories
20:26
<
Wizzup_ >
you could skip the last part for now
20:26
<
Wizzup_ >
in any case, I hope this will help with boot times and converstionst startup
20:26
<
Wizzup_ >
freemangordon: I think we set XDG_RUNTIME_DIR,
20:26
<
Wizzup_ >
don't we?
20:26
<
freemangordon >
yes, we do
20:26
<
freemangordon >
ok, I am a bit lost
20:26
<
freemangordon >
after a restart those temp files are no longer created in $HOME
20:29
<
arno11 >
Wizzup_: ok, do i need to run other stuff or can i reboot now ?
20:32
<
freemangordon >
hmm, it seems gst creates them
20:33
<
Wizzup_ >
arno11: reboot is fine
20:34
<
arno11 >
ok let's go
20:34
arno11 has left #maemo-leste [#maemo-leste]
20:35
<
freemangordon >
Wizzup_: tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=401312k,mode=755)
20:36
<
freemangordon >
'/run' has noexec set
20:36
<
Wizzup_ >
as expected
20:36
Wizzup_ has quit [Quit: Reconnecting]
20:36
<
freemangordon >
well, but XDG_RUNTIME_DIR=/run/user/1000
20:37
Wizzup has joined #maemo-leste
20:37
<
freemangordon >
and orc does fallback to $HOME
20:39
<
Wizzup >
well we don't want to remove noexec
20:41
<
freemangordon >
the question "where JIT compilers are supposed to write their output" is valid
20:42
<
Wizzup >
runtime dir is for pid files and stuff
20:42
<
freemangordon >
no, it is user specific
20:42
<
freemangordon >
run/user/$UID
20:42
<
freemangordon >
as is $HOME
20:42
<
freemangordon >
read the issue ^^^
20:43
<
Wizzup >
yeah I don't agree with lennart (as usual)
20:44
<
freemangordon >
ok, so, to your understanding, what is the correct place to put JIT compiler output?
20:44
<
Wizzup >
XDG provides none
20:45
<
Wizzup >
I'd probably use $XDG_CACHE_HOME
20:46
<
freemangordon >
$XDG_RUNTIME_DIR - ...The directory MUST be on a local file system and not shared with any other system. The directory MUST by fully-featured by the standards of the operating system. More specifically, on Unix-like operating systems AF_UNIX sockets, symbolic links, hard links, proper permissions, file locking, sparse files, memory mapping, ...
20:46
<
Wizzup >
I'm looking at openrc on my laptop and /run is not set noexec
20:46
<
Wizzup >
I wonder what sets it on devuan then
20:46
<
freemangordon >
Wizzup: we'll find that
20:47
<
freemangordon >
but lets first agree on whether it should be noexec or not :)
20:47
<
Wizzup >
note that none of the things mentioned above are hurt by noexec afaik
20:47
<
freemangordon >
memory mapping is
20:47
<
freemangordon >
because you cannot map with PROT_EXEC
20:48
<
Wizzup >
yes, so specific memory mapping doesn't I suppose
20:48
<
Wizzup >
in any case if gentoo openrc doesn't do it then I'm fine with not doing it on devuan
20:48
<
freemangordon >
maybe elogind make that
20:48
<
Wizzup >
that would be truly hilarious given lennarts stance
20:49
<
freemangordon >
mhm
20:49
<
Wizzup >
my debian server also has it set (noexec)
20:50
<
freemangordon >
my ubuntu as well (14.04)
20:50
<
Wizzup >
in any case I think this is pretty minor and I do think that tracker should not trip up over programs making tmp files in home
20:50
<
Wizzup >
I'm fine with it using home as scratch
20:51
<
freemangordon >
so, you think tracker shall not monitor $HOME?
20:52
System_Error has quit [Remote host closed the connection]
20:52
<
freemangordon >
I am fine, but I wonder if we reinstall tracker whether it will change the setting
20:52
<
Wizzup >
even if it does, it doesn't need to act
*immediately* and hurt the ux
20:52
<
Wizzup >
there's no reason to find say a mp3 file within a second
20:52
System_Error has joined #maemo-leste
20:52
<
freemangordon >
what is the acceptable time?
20:52
<
Wizzup >
minutes or more imo
20:52
<
freemangordon >
not for me :)
20:53
<
freemangordon >
I WANT MY MUSIC NOW!!!
20:53
<
Wizzup >
I mean even now it takes many minutes for it show up in omp
20:53
<
Wizzup >
since we can write them faster than we can analyse them
20:53
<
freemangordon >
only on first boot/copy
20:53
<
Wizzup >
I really see tracker as a background thing that should eventually figure things out but not immediately
20:53
<
freemangordon >
then if you add more files it happens way faster
20:54
<
freemangordon >
but really, wating 10 minutes for your just copied music to appear in the player is very broken UX
20:54
arno11 has joined #maemo-leste
20:55
<
Wizzup >
I think that is currently already the case, but I have a big music collection on it (100GB or so)
20:55
<
freemangordon >
Wizzup: and you wait 10 minutes after boot on d4 for OMP to show the files?
20:56
<
Wizzup >
why after boot?
20:56
<
Wizzup >
it is available immediately of course
20:56
<
Wizzup >
no additional mining is necessary
20:56
<
freemangordon >
right, seems I misunderstood
20:56
<
arno11 >
Wizzup: unfortunately boot time is still high and qt5 apps are still slow to start :(
20:57
<
freemangordon >
arno11: could you do /usr/libexec/tracker-miner-fs -v 3 -n and start that qt app
20:58
<
freemangordon >
to see if miner gets notified
20:58
<
freemangordon >
perhaps you should killall tracker-miner-fs first
20:59
<
arno11 >
ok (i already stopped trackers)
20:59
<
Wizzup >
arno11: did you also remove monitoring HOME?
21:00
<
arno11 >
Wizzup: nope
21:00
<
arno11 >
what is the command btw ?
21:02
<
Wizzup >
I need a few mins to figure it out
21:02
<
Wizzup >
I think just set with the values you want to keep in quotes
21:02
<
Wizzup >
but maybe make sure that killing trackers indeed solves it
21:02
<
Wizzup >
I didn't expect boot time not to be high, but maybe to at least be a bit better
21:13
<
arno11 >
freemangordon: sorry, tracker miner fs returns too much things. i can't find anything relevant atm. (just my n900 around)
21:14
<
arno11 >
Wizzup: ok
21:14
<
Wizzup >
I'll try to look at my n900 as well
21:34
<
arno11 >
Wizzup: i'm still not able to remove $HOME, need to check how exactly gsettings commands work lol
21:35
Livio has joined #maemo-leste
21:37
uvos has joined #maemo-leste
21:46
<
uvos >
eh honestly i think it might be better to just disable inotify indexing entirely by default and provide a "scan for media" button in omp...
21:50
Gary__ has quit [Ping timeout: 268 seconds]
21:58
xmn has quit [Ping timeout: 268 seconds]
22:07
Livio has quit [Ping timeout: 264 seconds]
22:18
arno11 has left #maemo-leste [#maemo-leste]
22:22
Gary_ has joined #maemo-leste
22:47
<
Wizzup >
uvos: yeah maybe
22:47
<
Wizzup >
it might also ultimately get better from tracker3
22:47
<
Wizzup >
I just think we should for now try to minimise the time we spend on it
22:52
Gary__ has joined #maemo-leste
22:56
Gary_ has quit [Ping timeout: 260 seconds]
23:04
<
inky >
folks, so i need/want to revive 'tablet mode' on maemo. i need it to be in airplane mode but still have wifi.
23:05
<
inky >
when it builds, the xml is symlinked to /etc/systemui.
23:05
<
uvos >
airplane mode needs to be changed to only disable cellular (i dont think it works atm anyhow)
23:06
<
uvos >
the rules have changed for airplanes and thus all modern phones work this way
23:07
<
inky >
it looks like com.nokia.phone.SSC is not available but com.nokia.cellular_ui is present.
23:08
<
uvos >
i dont think any of this works yet
23:08
<
uvos >
if you want to disable the radio your going to have to ask ofono directly for now
23:09
<
inky >
without dbus?
23:09
<
uvos >
no via dbus, but via its own interface
23:09
<
uvos >
or use ofono-scripts
23:09
<
uvos >
wich will call the dbus interface for you
23:09
<
inky >
i have no idea how to do that. i can figure out i think but i have no background.
23:09
<
Wizzup >
inky: I think we should just update our icd2 to make offline mode allow wifi
23:10
<
Wizzup >
there's no need to have a mode with wifi and modem off I think
23:10
<
inky >
yeah please do that.
23:11
<
Wizzup >
uvos: btw yes offline mode works fine
23:12
<
Wizzup >
it turns off both wifi and modem
23:12
<
Wizzup >
I use it frequently
23:12
<
uvos >
who turns off the modem?
23:12
<
uvos >
inky: i cant look right now but it think the script to turn off the modem is /etc/ofono/scripts/disable-modem.sh or someting obvious like that
23:12
<
Wizzup >
uvos: cellulard
23:13
<
inky >
okay, i think we don't need new entry in systemui menu if the offline mode can be modified.
23:13
<
inky >
tablet mode may overcomplicate things.
23:14
<
inky >
and what i was able to build anyway is not showing up. not only doesn't work but doesn't show up in menu.
23:15
<
uvos >
Wizzup: i dont see it
23:15
<
inky >
thank you for the tor-applet i use it always and it works perfectly. i also modified it a bit and use on my laptop.
23:15
<
uvos >
Wizzup: im not sure anyone is calling ofono to depower the modem
23:15
<
uvos >
bu it gues thats easy to check on device
23:17
<
Wizzup >
I'm confident this happens
23:17
<
Wizzup >
src/libicd-network-ofono.c:flightmode_changed(dbus_bool_t offline, gpointer user_data)
23:17
<
Wizzup >
so it is in libicd-network-ofono
23:18
<
uvos >
its kindof a mess that bits of modem state are there some are in cellulard and some are in sphone/vcm
23:19
<
uvos >
Wizzup: also flightmode_changed seams to be noop or am i missing something
23:22
<
Wizzup >
maybe just try it
23:22
<
Wizzup >
when I put my droid4 in flight mode in the US the battery lasts way longer
23:22
<
Wizzup >
when I don't it keeps searching and the battery doesn't last as long
23:26
Gary__ has quit [Ping timeout: 260 seconds]
23:27
<
Wizzup >
it's probably connui I guess
23:27
<
Wizzup >
in any case fmg probably remembers
23:44
diejuse has joined #maemo-leste
23:48
<
inky >
maybe it should be discussed. since our community is security oriented maybe some people would like to have full offline mode possibility.
23:48
<
inky >
though i turned off the modem on the pinephone prior to turning it on first time, but i never turned off wifi.
23:49
<
inky >
mac address randomization is another very important thing and i understand it is very hard to solve.
23:49
<
inky >
since icd gets crazy if the mac changes.