![]() |
Re: Help You. Identify the non-optified apps.
Might it be the case that du follows links into other file-systems and includes the size of their contents?
|
Re: Help You. Identify the non-optified apps.
Quote:
Quote:
Maybe that's not operational here, where du is just a symlink to busybox. But it claims to support the switch: Quote:
|
Re: Help You. Identify the non-optified apps.
Quote:
|
Re: Help You. Identify the non-optified apps.
Quote:
|
Re: Help You. Identify the non-optified apps.
Quote:
If you read the posts above, it's been said a couple of times that the dpkg output you posted looks normal. i.e. the "problem" is not visible. |
Re: Help You. Identify the non-optified apps.
I've completed the list of non-opt usage in the first post. Hope it's useful for some
|
Re: Help You. Identify the non-optified apps.
Quote:
If dpkg --purge was used to remove the package, or the package was never installed, then the first two letters would be "un". If the package is installed, you would see "ii". Another, more english way to view this, is using: Code:
~$ dpkg --status xserver-xephyr |
Re: Help You. Identify the non-optified apps.
Quote:
$du = `du -s /$_`; now is $du = `du -xs /$_`; But it looks like "du" still follows the links. I tried in on mc which I manually moved away from rootfs. Although I'm not sure what your script does at that point of time - or in which directory "du" thinks it is. Sorry, but I don't know perl - the only thing is that I heard people say it is a write only language (no read ;)). So, does anyone now, how to modify that script to don't follow symbolic links? |
Re: Help You. Identify the non-optified apps.
"du" does NOT follow symbolic links, i just tested it.
btw, -P is the du-switch to deactivate symlinks, but it's not present on the tablet, and it's supposed to be default anyways. what makes you say that du follows links? any hard evidence? |
Re: Help You. Identify the non-optified apps.
I didn't actually test this before posting the script, because I assumed du behaviour would be normal (i.e. don't follow symlinks) but here's a quick test which seems to show it is normal:
Quote:
So du -s / would give the disk usage for everything under / including /home and /home/user/MyDocs, which are separate filesystems, but du -sx / would only give the disk usage for the filesystem that / was part of. Or, to give another example: Quote:
Edit: :o :o Nope, it did the Wrong Thing in relation to symlinked directories. Please get the new version (from the original place) if you're having trouble with that. |
Re: Help You. Identify the non-optified apps.
Quote:
http://www.linux-mtd.infradead.org/f...ml#L_df_report "df" only reports the physically allocated memory and does not account for the compression that's taking place. "du" however reports the actual size of the files, and not their compressed, physical size. Thus, "du" will always report a higher usage than "df". |
Re: Help You. Identify the non-optified apps.
Thanks for the interesting link. Just one minor nitpick (I can't help myself ;) )
Quote:
On a compressed filesystem, this might be misleading because the "4k block" has only a virtual existence and doesn't reflect the actual disk usage associated with the file. At least as I understand it. You can see this below. ls shows the file size (1 byte) whereas du shows (what it thinks is) the disk allocation.. ~# echo > testfile ~# ls -l testfile -rw-r--r-- 1 root root 1 Dec 22 12:18 testfile ~# du -h testfile 4.0k testfile |
Re: Help You. Identify the non-optified apps.
Hi,
thanks for the long list of non-optified applications. There is a list in the wiki where the applications should be added to track which are already optified for which are already exististing bug reports and so on: http://wiki.maemo.org/Opt_Problem/Non-Optified_packages For example fennec/firefox and vagalume are optified after reporting and a lot of other developers which are contacted are aware of the problem and will optify their packages. Thank you, Uwe |
Re: Help You. Identify the non-optified apps.
Quote:
What I did is: I put the perl script on my device. I run it: Code:
ssh root@mydevice Code:
mc : 4.00K /usr/share/applications/hildon/mc.desktop Code:
ls -l /usr/share/mc Code:
df /usr/share Code:
df /usr/share/mc Code:
du -sch /home/usr/share/mc Code:
l /usr/bin/mc Code:
l -h /home/usr/bin/mc |
Re: Help You. Identify the non-optified apps.
Quote:
|
Re: Help You. Identify the non-optified apps.
1 Attachment(s)
Ok, here's an amended version of the script which tries to check for symlinked directories (by parsing the output of ls -l .. yuck!) ... recursively and with caching. May well be full of holes.. feedback welcome :)
I've put the extension as .txt to allow file-upload. Edit: I've also updated the original script where first posted between [code] tags, above. |
Re: Help You. Identify the non-optified apps.
Quote:
Code:
if -l $file i'll give your script a go a bit later when i have more time. |
Re: Help You. Identify the non-optified apps.
Quote:
|
Re: Help You. Identify the non-optified apps.
Quote:
for parsing the target of a link, there's a dedicated command available: readlink Code:
~ $ readlink /opt |
Re: Help You. Identify the non-optified apps.
Thank you for the rework. Also thank you for the effort you invest (script size doubled).
Unfortunately I still see some issues :( (and I still did not learn perl ;)). The mc package (which I moved away and linked it) seems to be handled correctly now. Thank you :). But now I just saw the following thing. Report from the actual script version; from your original post (which I used): Code:
adblock-plus-1.0 : 84.00K /home/user/.mozilla/microb/adblockplus/patterns.ini Code:
l /home/user/.mozilla/microb/extensions/{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}/chrome/adblockplus.jar Code:
df /home/user/.mozilla/microb/extensions/{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}/chrome/adblockplus.jar But I would tend to say adblock-plus-1.0 is optified, though it is not in /opt. Sorry for that trouble :o. |
Re: Help You. Identify the non-optified apps.
Quote:
It's because when the file isn't a symlink, I'm only checking for /opt. I should also check for /home too. I've amended the version in my original post, linked above. I'll amend the attached version probably later today or tomorrow. Really, it's just changing the line unless(/^opt/ or /^usr\/share\/(man|doc)\//) { to unless(/^opt/ or /^home/ or /^usr\/share\/(man|doc)\//) { Hope that works. Happy holidays! :) |
Re: Help You. Identify the non-optified apps.
Please someone sticky this thread and keep it maintained so that we all know when we get our n900 what's gonna eat up our 256rom.
The list of apps not following guidelines to be optified needs to be posted somewhere and stickied. How will new users reverse the damage? Can you say with 100% certainty anything in a repo that is not extras testing or extras devel is optified? Is that the basic rule here? |
All times are GMT. The time now is 17:17. |
vBulletin® Version 3.8.8