![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 67
Karma: 70690
Join Date: May 2013
Device: Kindle Paperwhite 1 & Kindle 4 Black
|
![]()
Hi,it's a new new discovery for the Kindle.
For instance, the indexer can waste almost 100% of the CPU time when it is running. For to release the CPU, we can reduce using the CPU by make a change. There are many ' *.jar ' in the directory of /usr/java/bin/cvm just like: *de_DE.jar *es_ES.jar *fr_FR.jar *it_IT.jar *ja_JP.jar *pt_BR.jar they always working when our Kindle is running,but we don't use it if we are reading the 'local language‘ document. Then I found something useful in the file /etc/upstart/framework there is a line said 'JAR_LIST=$(find $EHOME/lib $EHOME/booklet /usr/local/ebook/lib /opt/amazon/pkg/oss/lib -name \*.jar 2>/dev/null) ' So we can backup the files and remove it from our device for to prevent them from running. Here is the main steps: ------------------------------------------------------------------ 1.Install the Jailbreak and usbnetwork 2.Use the Winscp to make a ssh to the Kindle 3.Run the script: #!/bin/sh /etc/upstart/framework stop cd /opt/amazon/ebook/lib mkdir -p /mnt/us/.backup/opt/amazon/ebook/lib mv *de_DE.jar /mnt/us/.backup/opt/amazon/ebook/lib/ mv *es_ES.jar /mnt/us/.backup/opt/amazon/ebook/lib/ mv *fr_FR.jar /mnt/us/.backup/opt/amazon/ebook/lib/ mv *it_IT.jar /mnt/us/.backup/opt/amazon/ebook/lib/ mv *ja_JP.jar /mnt/us/.backup/opt/amazon/ebook/lib/ mv *pt_BR.jar /mnt/us/.backup/opt/amazon/ebook/lib/ /etc/upstart/framework start sync sync sync reboot 4.Restart the Kindle. ---------------------------------------------------------------------- Tips:Chose the right files ’*.jar'!!!!!!!!! Example:If your local language is Japannes, you will have to keep the file '*ja_JP.jar' from being deleted!!!!! Here are the situation of CPU after finished all the step above. Before operation After operation It's test Successfuly for Paperwhite Last edited by richy1989; 08-25-2013 at 04:53 AM. |
![]() |
![]() |
![]() |
#2 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Apples vs. oranges.
You're comparing a snapshot from a point in time where the framework is doing background tasks (catalog/cleanup/scan/indexing) [mostly from some of the niced threads, hence most of the CPU usage falling in the 'nice' column], to one where it isn't. That's not even taking into account that the CPU frequency is variable, so, depending on which state the CPU governor thought the CPU should be in, top's percentage of CPU usage for the same task can vary wildly. Last edited by NiLuJe; 08-23-2013 at 11:17 AM. |
![]() |
![]() |
![]() |
#3 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Hmm...
It might be a useful change for other reasons. But I agree, better testing is called for to justify changing files in the Amazon image of the filesystem. Since we can not (yet) de-brick a Kpw, changing files in the Amazon image that might cause an firmware update to fail in way that leaves the Kindle 'bricked' is not a good idea. Note: There is a patch to U-Boot available from the Freescale Community that will force the SoC to switch to 'Fastboot' mode on the next restart for the MX508 SoC. A tad bit too invasive of a change to test for my paygrade. ![]() Last edited by knc1; 08-23-2013 at 11:42 AM. |
![]() |
![]() |
![]() |
#4 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
The CPU isn't being "wasted" when the Kindle is indexing content. It's pegged at 100% because the CPU is working as hard as it can.
|
![]() |
![]() |
![]() |
#5 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
You're getting something seriously wrong here. As NiLuJe said, you're comparing apples with oranges.
Having these "unused" language-specific jar files in the classpath has negligible impact on CPU performance and zero impact on memory requirement. Why? Because classes are looked up and loaded exactly once in, namely when they are first needed. Say you want to load a ResourceBundle named "squirrel", and your language is ja_JP. Then (at most), the following three classes will be loaded: squirrel_ja_JP, squirrel_ja, squirrel. While looking up these classes, yes, the "unneeded" jars will be searched. But this is fast, because one only has to look at the jar file's central directory. So, while I appreciate your effort, I think that this is a really bad idea. You are not gaining anything (except for a speedup that can probably be measured in milliseconds, or at most seconds, over the entire runtime of the Kindle), but you're breaking functionality. |
![]() |
![]() |
![]() |
#6 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
In my PW, there is no directory /usr/java/bin/cvm..
There is only a 1.8MB file called cvm.. Had some fun searching out all *.jar files and filtering them.. see attached zip with list in csv format.. contains only the non english ones.. There are around 200+ language specific jar files.. if we exclude the "en_GB" files, this amounts to around 10MB worth of "wasted" files.. ![]() Taking due heed of knc1 and ixtab's warnings, I wouldn't want to remove these files and screw up something.. ![]() Still.. some interesting points:
Last edited by nasser; 08-23-2013 at 11:48 PM. Reason: forgot attachment |
![]() |
![]() |
![]() |
#7 |
SQUIRREL!!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,636
Karma: 8400000
Join Date: Nov 2010
Location: California
Device: K-Fire, PW2, PW3
|
@nasser-
I can't help with the rest but I'm pretty sure Topaz is an old format (predecessor to mobi). |
![]() |
![]() |
![]() |
#8 | |||||
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
Quote:
Quote:
Quote:
Quote:
|
|||||
![]() |
![]() |
![]() |
#9 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
|
MediaPlayer might be the audiobook player
|
![]() |
![]() |
![]() |
#10 |
FYIAD
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 15
Karma: 27492
Join Date: Aug 2013
Location: Scotland
Device: Kindle Paperwhite
|
Something I've learned from fifteen years of Windows, and several years of Android - Never, EVER delete system files unless you know EXACTLY what those files are for, and, more importantly, what DEPENDS upon those files. Deleting a jar for something you don't see youself ever using is a good way to soft-brick your kindle four months down the road, once you've forgotten what you deleted, and try opening one specific kindlet or book that depends explicitly upon something you forgot you ever deleted in the first place!
Nothing in the OS takes up so much space that it is essential to get rid of it to cram in more books. Or free up an imaginary % of CPU speed, because that's not how CPU's work. |
![]() |
![]() |
![]() |
#11 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
^-- This.
The space is minimal. I AM 100% behind any effort to accelerate machine performance. And I applaud Richies efforts so far. This one feels risky though. My two cents. |
![]() |
![]() |
![]() |
#12 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 67
Karma: 70690
Join Date: May 2013
Device: Kindle Paperwhite 1 & Kindle 4 Black
|
Sorry,
I think I made a big mistake. But I will make any effort to accelerate machine performance still! Thanks for everyone's help! ![]() |
![]() |
![]() |
![]() |
#13 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
not really. IIRC something similar was suggested before.
"Behind you all the way". Niluje has swapped to a nice new shiny latest toolchain ultimately using the native processing more efficiently; over the course of a project such tiny improvements can of course add up to making a difference so I'm behind you all the way. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
B&N, make a bigger, higher DPI e-ink reader already! | JWez | Barnes & Noble NOOK | 11 | 06-28-2013 03:53 PM |
New to Calibre. Efficiency suggestions? | Mikey1969 | Library Management | 1 | 06-26-2012 06:55 PM |
is it possible to make calibre just use one CPU? | booksonthemove | Calibre | 1 | 02-20-2010 04:55 PM |
Power efficiency | bellosguardo | Sony Reader | 5 | 07-10-2009 03:15 AM |
Reference Bennett, Arnold: Mental Efficiency, v1, 12 Dec 2007. | Patricia | BBeB/LRF Books | 1 | 12-11-2007 09:09 PM |