IRC log of #maemo-devel for Wednesday, 2010-10-13

*** swc|666 has joined #maemo-devel00:58
*** swc|666 has joined #maemo-devel00:58
*** achipa has quit IRC01:20
*** achipa has joined #maemo-devel01:24
*** SpeedEvil1 has joined #maemo-devel02:06
*** SpeedEvil has quit IRC02:06
*** SpeedEvil1 has quit IRC02:22
*** SpeedEvil has joined #maemo-devel02:26
*** achipa has quit IRC02:28
*** alon has quit IRC02:55
*** SpeedEvil has quit IRC02:58
*** SpeedEvil has joined #maemo-devel03:02
*** alon has joined #maemo-devel03:16
*** pillar_ has quit IRC03:19
*** swc|666 has quit IRC03:46
*** kW_ has quit IRC04:32
*** swc|666 has joined #maemo-devel06:48
*** swc|666 has joined #maemo-devel06:48
*** swc|666 has quit IRC06:54
*** DocScrutinizer has quit IRC07:33
*** DocScrutinizer has joined #maemo-devel07:33
*** jylan has joined #maemo-devel07:34
*** ilius has joined #maemo-devel08:48
*** lmoura__ has joined #maemo-devel09:33
*** lmoura_ has quit IRC09:34
*** ppenz has joined #maemo-devel09:48
*** jylan has quit IRC10:19
*** amigadave has joined #maemo-devel10:20
*** dazo_afk is now known as dazo10:39
*** Milhouse has quit IRC11:40
*** Milhouse has joined #maemo-devel11:42
*** Milhouse has joined #maemo-devel11:42
*** achipa has joined #maemo-devel11:46
*** mirr0r has quit IRC12:22
*** mirr0r has joined #maemo-devel12:22
*** mirr0r has quit IRC12:42
*** mirr0r has joined #maemo-devel12:43
*** JPohlmann has joined #maemo-devel12:54
*** kW_ has joined #maemo-devel13:20
*** kW_ has quit IRC13:41
*** BabelO has joined #maemo-devel13:42
*** BabelO has joined #maemo-devel13:42
airany of you good with xlib?13:53
*** mirr0r has quit IRC13:53
*** mirr0r has joined #maemo-devel13:53
airsometimes after drawing to the window and flushing, the window doesn't update for about 10-20 seconds and the device has no load13:54
airand after flushing it stays in select() so nothing in the app is causing it to finally update13:56
*** lizardo has joined #maemo-devel14:00
*** BabelO has quit IRC14:23
airdoesn't happen at all when the device is on the charger14:32
*** achipa has quit IRC14:35
*** ilius has left #maemo-devel14:43
*** achipa has joined #maemo-devel14:45
*** achipa has quit IRC14:46
*** achipa has joined #maemo-devel14:48
*** alvaro__ has joined #maemo-devel15:04
*** mirr0r has quit IRC15:18
*** mirr0r has joined #maemo-devel15:18
*** kW_ has joined #maemo-devel15:24
qknightmy n900 has full ram usage and is swapping after reboot. i don't have any idea why that happens lately15:32
qknighthow much ram should be used on idle? (i'm using imap in the background) but i don't think that imap is the problem15:32
airrun top in the terminal15:33
airdoes it show a program using a lot of ram?15:34
ShadowJKmemory use is hard to measure15:36
ShadowJKImmediately after reboot mine sits at 0M swap use, but it'll easily be at 50-60M a minute after boot if I have, for example, python based widgets15:36
ShadowJK100-150M seems to be normal for me in use15:37
airhttp://qzx.com/asui/_screenshots/process_viewer-portrait.png -- does n900 have anything like that?15:38
qknightair: htop, top15:39
airtop on the n810 doesnt show rss15:40
qknightair: http://dpaste.com/257272/ my  memory usage (using htop and konsole export)15:41
qknightso you are telling me that swapping is normal15:42
qknightgood to know15:42
qknightthanks15:42
airswapping is never normal15:42
aircat /proc/meminfo |head -n 415:44
*** DocScrutinizer has quit IRC15:44
airhow much buffer and cache are you using?15:45
qknighthttp://dpaste.com/257274/15:45
airodd15:46
airyou have 90meg free15:46
*** dazo is now known as dazo_afk15:47
qknightair: i don't know why that is15:49
SpeedEvilAfter 12h up, I have 35M use15:54
SpeedEvilof sap15:54
SpeedEvilswap15:54
SpeedEvilActually - this is mostly revooted, and not used at all 12h ago15:54
qknightfunny. i get a lot of swap usage right after a few minutes of inactivity15:56
SpeedEvilIf you use something heavy like a browser, then it will push lots of rarely used stuff out.16:00
SpeedEvilThis will not get paged back in until it's used.16:00
SpeedEvilAnd much isn't used16:00
ShadowJKAnd it can exist both in RAM and swap at the same time.16:09
SpeedEvilyes16:10
ShadowJKWhich is why swap "use" number has a tendency to never go down much :)16:10
SpeedEvilTehre is no pressing reason to 'delete' a on-disk copy of a page that's been paged out and back in, if it has not changed16:10
SpeedEvilNot deleting it means that if needed, that memory can be freed eimmediately, without any issue.16:11
*** JPohlmann1 has joined #maemo-devel16:22
*** JPohlmann has quit IRC16:22
*** DocScrutinizer has joined #maemo-devel16:52
*** edisson has joined #maemo-devel17:03
*** tet has joined #maemo-devel17:04
*** achipa has quit IRC17:05
*** DocScrutinizer has quit IRC17:08
qknightSpeedEvil, ShadowJK: i did not know that some stuff can exist on both swap/ram at the same time. but your arguments make sense17:08
qknightright now i'm developing torrent support for the evopedia application17:08
qknight-- different problem17:08
*** DocScrutinizer has joined #maemo-devel17:09
qknightand it seems that something makes the gui very slow. my download runs at 80-300kb/s (torrent) one peer one seed17:09
qknightit is probably the IO which makes it slow but i can't think of how i could change that17:09
qknightdoes the n900 support io-niceness in some way?17:09
ShadowJKI think rtorrent uses madvise (or fadvise?) to tell kernel to drop parts of the files from ram17:11
ShadowJKso the file data doesn't push out applications17:11
tetHi ! I'am currently having a lot of problems the python app i'am making for the N900. It uses a configuration file located in /usr/share/myfolder/ which is owned by *root*. But my python app is apparently runned by *user* so it can't write any configuration file one the previous folder ... Any help would be much appreciated :)17:15
ShadowJKI think it's normal to use /home/user/.appname as config file17:16
tetoh ok17:18
tetSo i should relocate all my configuration files in /home/user/.myapp17:18
DocScrutinizer/usr is generally read-only, it's NOT supposed to have any config files. Esp config files17:19
DocScrutinizerthat's the standard17:19
DocScrutinizerexcept for system (root) daemons and the like, which usually have their config in /etc17:19
tetok. Perfectly clear answer.17:20
ShadowJKit's also normal for the app to write a new config file with default settings if it's missing :)17:20
DocScrutinizerusr means unix sharable resources, it might even reside on a different machine and get NFS mounted17:20
tetI'am dumb. Did all the testing as root without noticing this problem earlier in devlopment now i need to correct all references and relocate all those files :'(17:21
ShadowJKextremely rarely in the case of N900 of course ;)17:21
DocScrutinizerdoesn't change the basic rationale17:21
ShadowJKtet, how many files is this?17:21
tetShadowJK, Just 6 :) but i'am kind of lazy :)17:21
ShadowJKThen a /home/user/.myapplication/ folder for storing configs17:22
tetalways thought /usr was for /user :) i was so wrong :/17:23
ShadowJKThere's also the multi-user heritage. On grown-up systems that might have more than one user, it'd be kinda annoying if one user's settings overwrote the other user's settings17:23
DocScrutinizerso, executables, icons and whatnot go to /usr(/bin) (and optified from there to /opt/... and symlinked) while config data usually lives in the user's home directory, just because there might be more than one users each with his own config17:24
*** ppenz has quit IRC17:24
DocScrutinizerlol, ShadowJK was faster than me, once more :-D17:24
ShadowJKIt's probably okay to place default configuration files into /usr/share/appname/ if you don't want to put them inside the application itself, and have the app copy from there if they're missing in /home/user/.appname/17:25
tetAt first i was thinking that placing my conf file in a root owned folder was a good idea, because that config file contains passwords17:25
DocScrutinizeryes, that's nice17:25
DocScrutinizer(copy config from /usr to home)17:26
DocScrutinizer(passwords) if the user has to know the passwords, then there's no use in placing them into root domain17:26
DocScrutinizerthere's no sense in hiding passwords from user which he had to enter before and thus already is supposed to know17:27
tetWell if someone take my terminal and browse through the /home folder he can read my password. Of course the answer would be to encrypt them i guess ... but i don't really have time to look into that17:27
ShadowJKever tried doing "ls -la" instead of the usual ls? :)17:28
DocScrutinizerif somebody has access to your machine as user, then how would you tell he's not entitled to do that17:28
*** amigadave has quit IRC17:29
DocScrutinizertet: quite a number of apps store passwords in a obfuscated manner (like rot13) but really that's nonsense17:29
tetIn a business company a phone can be re-assigned to another user at barely any moment. Without being completly wiped. So i didn't wanted passwords to remain easily readable ...17:29
DocScrutinizerit's absolutely irrelevant if they are easily or difficultly readable. They are readable no matter what17:30
ShadowJKWell that's kinda silly considering there'll be passwords stored for the email and passwords stored for the browser too.. and cookies17:30
ShadowJKAnd whether you place them in /usr or in /home as a "hidden" file or directory, they're still on the device either way, and your app knows how to access them17:31
tetTrue. Anyway nevermind i'am perfectly aware that as long as somebody can use your terminal anything can't be considered as safe anymore.17:31
DocScrutinizerif you want safe passwords, use wallet or pw-vault or a similar program, which holds all your passwords and you have to unlock it, either once after boot or every 30 min or for each app's first access after boot or whatever. Unlock by entering your master password which is NOT stored anywhere on the device17:33
tetOk. I won't have time to do that... i will just let that config here and hope we don't have too curious users...17:35
ShadowJKmaemo is a single-user system :/17:36
ShadowJK/home/user/.file wont actually show up in file manager or a normal ls, by the way17:36
DocScrutinizernope, not really17:36
DocScrutinizeractually maemo has several users17:36
tetWell if someone is searching for a password file i'am pretty sure he will try a ls -al :)17:37
DocScrutinizerroot, user, sync, hald, messagebus17:38
ShadowJKbut just one gui user17:38
ShadowJKjust one /home/user17:38
ShadowJKsame for everyone using the same device17:38
DocScrutinizerthat's somewhat correct - usually17:38
DocScrutinizeras we got no xdm or similar authentication, there'll be no different GUI users usually17:40
DocScrutinizerand I pondered several times to fix that17:40
DocScrutinizermain obstacle being the string "user" hardcoded in several maemo closed source apps17:41
DocScrutinizereven more silly than doing things like " if $(id|grep root >/dev/null)..."17:43
DocScrutinizerthere's some reason to assume the root user on a unix system has name "root" (though you probably could name him "admin" as well), but there's no sense whatsoever in assuming the user of a system has a particular name like e.g "user"17:45
DocScrutinizerand the users home directory is $HOME every time, never /home/user17:47
DocScrutinizerso yes, in that respect maemo is a 'single user system', just because Nokia didn't bother about multiuser and used nasty botches in their code17:48
qknightjust had a download running and a sipgate phone call was coming up. next the torrent client reduced it's bandwidth (can that be?). does maemo make such QoS stuff? will have to test this later17:51
tetI maked a Debian package for my python app. It contains the common scripts like "preinst" "postinst" etc. When i update a package, how does it works ? It removes the previous packages and go through all uninstall scripts ?17:58
*** JPohlmann2 has joined #maemo-devel18:40
*** JPohlmann1 has quit IRC18:44
*** JPohlmann2 has quit IRC18:51
*** JPohlmann has joined #maemo-devel18:51
*** tet has quit IRC19:23
*** JPohlmann has quit IRC19:55
*** JPohlmann has joined #maemo-devel20:59
*** fiferboy has quit IRC21:01
*** fiferboy has joined #maemo-devel21:03
*** fiferboy has quit IRC21:03
*** fiferboy has joined #maemo-devel21:03
*** BabelO has joined #maemo-devel21:44
*** BabelO has joined #maemo-devel21:44
*** VDVsx has joined #maemo-devel21:59
*** StenFil has joined #maemo-devel22:04
*** JPohlmann has quit IRC22:15
*** piggz has joined #maemo-devel22:28
piggzhi, im attempting to build for maemo agains kdelibs from http://files.kolab.org/local/maemo/dists/fremantle/extras/binary-i386 ...... cmake cannot find FindKDE4Internal.cmake ..... any ideas?22:29
*** piggz has quit IRC22:33
*** piggz has joined #maemo-devel22:42
*** StenFil has quit IRC22:51
*** VDVsx has quit IRC23:09
*** malloc64 has joined #maemo-devel23:46
malloc64Does anyone know where to find the desktop SDK virtual image?23:47
*** fecub has joined #maemo-devel23:49
*** lizardo has quit IRC23:52

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!