12-18-2022, 10:33 AM | #76 | |
Wizard
Posts: 2,871
Karma: 3933245
Join Date: Sep 2012
Location: Salzburg AT
Device: Boox 4/14, Like-/Meebook 1/8, Tolino 1/10, Kobo 0/5, Kindle 0/3
|
Quote:
Code:
D:\_Reader-Smartphone\ADB>adb shell BOOX:/ $ cd /sdcard/Test BOOX:/sdcard/Test $ chmod 755 /data/local/tmp/alpha.sh BOOX:/sdcard/Test $ /data/local/tmp/alpha.sh /system/bin/sh: /data/local/tmp/alpha.sh: No such file or directory 1|BOOX:/sdcard/Test $ |
|
12-18-2022, 11:25 AM | #77 |
Wizard
Posts: 2,871
Karma: 3933245
Join Date: Sep 2012
Location: Salzburg AT
Device: Boox 4/14, Like-/Meebook 1/8, Tolino 1/10, Kobo 0/5, Kindle 0/3
|
@Renate: Rexbanner did it with your script
|
Advert | |
|
12-18-2022, 12:51 PM | #78 |
Wizard
Posts: 2,403
Karma: 10000009
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
I know. I did it too. There's is something goofy with your shell.
Code:
#!/system/bin/sh echo Hi, this works for a change. |
12-18-2022, 01:24 PM | #79 | |
Wizard
Posts: 2,871
Karma: 3933245
Join Date: Sep 2012
Location: Salzburg AT
Device: Boox 4/14, Like-/Meebook 1/8, Tolino 1/10, Kobo 0/5, Kindle 0/3
|
Quote:
Code:
Microsoft Windows [Version 10.0.22621.963] (c) Microsoft Corporation. Alle Rechte vorbehalten. d:\_Reader-Smartphone\ADB>adb push alpha.sh /data/local/tmp alpha.sh: 1 file pushed. 0.0 MB/s (173 bytes in 0.047s) d:\_Reader-Smartphone\ADB> d:\_Reader-Smartphone\ADB>adb push x.sh /data/local/tmp x.sh: 1 file pushed. 0.0 MB/s (53 bytes in 0.016s) d:\_Reader-Smartphone\ADB>adb shell BOOX:/ $ chmod 755 /data/local/tmp/x.sh BOOX:/ $ /data/local/tmp/x.sh /system/bin/sh: /data/local/tmp/x.sh: No such file or directory 1|BOOX:/ $ cd /data/local/tmp BOOX:/data/local/tmp $ ls alpha.sh x.sh BOOX:/data/local/tmp $ exit d:\_Reader-Smartphone\ADB>adb push x.sh /data/local/tmp x.sh: 1 file pushed. 0.0 MB/s (46 bytes in 0.016s) d:\_Reader-Smartphone\ADB>adb shell BOOX:/ $ chmod 755 /data/local/tmp/x.sh BOOX:/ $ /data/local/tmp/x.sh /system/bin/sh: /data/local/tmp/x.sh: No such file or directory 1|BOOX:/ $ exit d:\_Reader-Smartphone\ADB>adb push x.sh /data/local/tmp x.sh: 1 file pushed. 0.0 MB/s (37 bytes in 0.010s) d:\_Reader-Smartphone\ADB>adb shell BOOX:/ $ chmod 755 /data/local/tmp/x.sh BOOX:/ $ /data/local/tmp/x.sh : inaccessible or not found : inaccessible or not found Hi, this works for a change. BOOX:/ $ Code:
. . echo Hi, this works for a change. |
|
12-18-2022, 01:36 PM | #80 |
Wizard
Posts: 2,871
Karma: 3933245
Join Date: Sep 2012
Location: Salzburg AT
Device: Boox 4/14, Like-/Meebook 1/8, Tolino 1/10, Kobo 0/5, Kindle 0/3
|
alpha.sh
Code:
for a in a b c d e f g h i j k l m n o p q r s t u v w x y z; do i=0; while [ $((i)) -lt 1000 ]; do touch $a$i; i=$(($i+1)); done time ls -l | wc done Code:
d:\_Reader-Smartphone\ADB>adb shell BOOX:/ $ cd /sdcard/Test BOOX:/sdcard/Test $ chmod 755 /data/local/tmp/alpha.sh BOOX:/sdcard/Test $ /data/local/tmp/alpha.sh 'data/local/tmp/alpha.sh[1]: syntax error: unexpected 'do 1|BOOX:/sdcard/Test $ |
Advert | |
|
12-18-2022, 01:40 PM | #81 |
Wizard
Posts: 2,403
Karma: 10000009
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
Oh, wait a minute!
How are you copying/pasting the scripts? Are you using "Windows Notepad"? Don't! Install Notepad++ which correctly deals with "Unix style" (uses LF instead of CR/LF line endings). You can also use "Unix style" on any text file for Windows too. "Unix style" should be your choice always. Load your script in Notepad++. It will say either "DOS" or "Unix" in the bottom status bar. https://notepad-plus-plus.org/downloads/ And/or: Code:
$ dos2unix /data/local/tmp/alpha.sh It could just say, "Oh, jeez, another ^M coming before ^J again. I guess that I'll ignore it." In Windows, under Settings > Apps > Apps & Features > Optional Features > Notepad > Uninstall! Last edited by Renate; 12-18-2022 at 02:02 PM. |
12-18-2022, 02:18 PM | #82 |
Wizard
Posts: 2,871
Karma: 3933245
Join Date: Sep 2012
Location: Salzburg AT
Device: Boox 4/14, Like-/Meebook 1/8, Tolino 1/10, Kobo 0/5, Kindle 0/3
|
Wow, thank you - now it works.
Im using Notepad++, but it was set to Windows (CR LF). My Unix time ended 20 years ago and I've forgotten a lot of it. Last edited by ottischwenk; 12-18-2022 at 02:27 PM. |
12-18-2022, 02:57 PM | #83 |
Wizard
Posts: 2,871
Karma: 3933245
Join Date: Sep 2012
Location: Salzburg AT
Device: Boox 4/14, Like-/Meebook 1/8, Tolino 1/10, Kobo 0/5, Kindle 0/3
|
Hmm, but creating an measuring of time direct after creation isnt the problem.
The problem is the 2nd time after reboot. In my opinion, the time should increase linearly with the number of files - but it increases somewhat progressively. Examples: Between 3001 and 4001 it's 7.02 seconds Between 8001 and 9001 it is 16 seconds Between 16001 and 17001 it is 26.42 seconds And now: Code:
BOOX:/sdcard/Test $ /data/local/tmp/alpha.sh 1001 8002 51898 0m02.49s real 0m00.12s user 0m00.44s system 2001 16002 103788 0m06.91s real 0m00.26s user 0m01.01s system 3001 24002 155678 0m12.56s real 0m00.30s user 0m01.63s system 4001 32002 207568 0m19.58s real 0m00.34s user 0m02.11s system 5001 40002 259458 0m31.13s real 0m00.66s user 0m02.69s system 6001 48002 311348 0m42.56s real 0m00.81s user 0m03.37s system 7001 56002 363238 0m55.63s real 0m00.89s user 0m04.07s system 8001 64002 415128 1m07.81s real 0m00.95s user 0m04.49s system 9001 72002 467018 1m23.22s real 0m00.75s user 0m05.44s system 10001 80002 518908 1m39.22s real 0m01.19s user 0m05.62s system 11001 88002 570798 1m56.02s real 0m00.87s user 0m06.65s system 12001 96002 622688 2m14.95s real 0m01.14s user 0m07.32s system 13001 104002 674578 2m34.26s real 0m00.93s user 0m08.07s system 14001 112002 726468 2m52.12s real 0m01.47s user 0m07.93s system 15001 120002 778358 3m14.64s real 0m01.55s user 0m08.60s system 16001 128002 830248 3m33.10s real 0m01.56s user 0m09.06s system 17001 136002 882138 3m59.52s real 0m01.72s user 0m09.91s system 18001 144002 934028 4m22.69s real 0m01.40s user 0m10.50s system 19001 152002 985918 4m48.05s real 0m01.93s user 0m11.02s system 20001 160002 1037808 5m12.97s real 0m01.81s user 0m11.67s system 21001 168002 1089698 5m38.56s real 0m01.61s user 0m12.55s system 22001 176002 1141588 6m02.03s real 0m01.97s user 0m12.48s system 23001 184002 1193478 6m32.44s real 0m01.69s user 0m13.61s system 24001 192002 1245368 7m02.78s real 0m02.35s user 0m13.66s system 25001 200002 1297258 7m31.83s real 0m02.10s user 0m14.74s system 26001 208002 1349148 8m02.08s real 0m02.25s user 0m15.13s system Last edited by ottischwenk; 12-18-2022 at 05:44 PM. |
12-18-2022, 06:42 PM | #84 |
Wizard
Posts: 2,403
Karma: 10000009
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
Well, the problem with any of that user mode file systems is that it puts a big road block in all the disk operations. The Poke3 doesn't manage to totally kill it, but something is definitely wrong with the Ultra Tab and the Leaf2 implementations.
12 seconds for listing 3000 files is ridiculous. 3000 files in one directory is not all that excessive. In ext4 (I just learned this), the filename is hashed and looked up in a tree structure (HTree). A file can be quickly located. OTOH, if you say that you are looking for a file with a name *similar* to "ObNoXiOuS" it could be anywhere and you have to check every single filename to see if it's *similar*. So if the directory is twice as big, you have twice the number of candidates to check but also twice as many things to find so it's four times slower. Still, we're only seeing a power of 1.65 and not 2.0 |
12-19-2022, 04:42 AM | #85 |
Member
Posts: 24
Karma: 10
Join Date: Dec 2022
Device: none
|
I am not entirely sure, but if understand this discussion on reddit correctly, this problem is not specific to onyx boox:
https://www.reddit.com/r/androiddev/...s_performance/ |
12-19-2022, 05:00 AM | #86 |
Wizard
Posts: 2,871
Karma: 3933245
Join Date: Sep 2012
Location: Salzburg AT
Device: Boox 4/14, Like-/Meebook 1/8, Tolino 1/10, Kobo 0/5, Kindle 0/3
|
I've now run this test on the Leaf2 - it takes about 1 second longer per 1000 files; so pretty linear.
And that with much weaker hardware |
12-19-2022, 06:22 AM | #87 |
Wizard
Posts: 2,403
Karma: 10000009
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
18 seconds is still worse than 0.6 seconds.
Also, even though factoring big directories helps. C/Clarke/Arthur C. Clarke/Fiction/2001: A Space Odyssey requires five separate searches as each directory has to be searched indpendently. Also, even when you select that book from a device enumerated (and exactly correct) path the system still has to search for all the case-variant files. |
12-19-2022, 07:34 AM | #88 |
Wizard
Posts: 2,871
Karma: 3933245
Join Date: Sep 2012
Location: Salzburg AT
Device: Boox 4/14, Like-/Meebook 1/8, Tolino 1/10, Kobo 0/5, Kindle 0/3
|
|
12-19-2022, 07:51 AM | #89 |
Wizard
Posts: 2,403
Karma: 10000009
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
|
12-19-2022, 08:47 AM | #90 | |
Wizard
Posts: 2,871
Karma: 3933245
Join Date: Sep 2012
Location: Salzburg AT
Device: Boox 4/14, Like-/Meebook 1/8, Tolino 1/10, Kobo 0/5, Kindle 0/3
|
Quote:
Unfortunately I only saved it as a graphic - documentation for Boox, also the Leaf 2 values for comparison. And here the values of Leaf1 - they correspond to those of Poke 3 (Android 10) Code:
d:\_Reader-Smartphone\ADB>adb shell Leaf:/ $ cd /sdcard Leaf:/sdcard $ mkdir Test Leaf:/sdcard $ cd Test Leaf:/sdcard/Test $ chmod 755 /data/local/tmp/alpha.sh Leaf:/sdcard/Test $ /data/local/tmp/alpha.sh 1001 8002 51898 0m00.04s real 0m00.04s user 0m00.02s system 2001 16002 103788 0m00.06s real 0m00.07s user 0m00.02s system 3001 24002 155678 0m00.09s real 0m00.07s user 0m00.06s system 4001 32002 207568 0m00.13s real 0m00.07s user 0m00.10s system 5001 40002 259458 0m00.15s real 0m00.09s user 0m00.11s system 6001 48002 311348 0m00.18s real 0m00.02s user 0m00.21s system 7001 56002 363238 0m00.26s real 0m00.14s user 0m00.15s system 8001 64002 415128 0m00.24s real 0m00.13s user 0m00.18s system 9001 72002 467018 0m00.28s real 0m00.17s user 0m00.17s system 10001 80002 518908 0m00.29s real 0m00.14s user 0m00.25s system 11001 88002 570798 0m00.32s real 0m00.15s user 0m00.28s system 12001 96002 622688 0m00.38s real 0m00.22s user 0m00.25s system 13001 104002 674578 0m00.38s real 0m00.21s user 0m00.29s system 14001 112002 726468 0m00.50s real 0m00.14s user 0m00.45s system 15001 120002 778358 0m00.42s real 0m00.22s user 0m00.31s system 16001 128002 830248 0m00.48s real 0m00.29s user 0m00.34s system 17001 136002 882138 0m00.50s real 0m00.29s user 0m00.37s system 18001 144002 934028 0m00.52s real 0m00.21s user 0m00.48s system 19001 152002 985918 0m00.59s real 0m00.27s user 0m00.44s system 20001 160002 1037808 0m00.76s real 0m00.35s user 0m00.49s system 21001 168002 1089698 0m00.61s real 0m00.32s user 0m00.50s system 22001 176002 1141588 0m00.64s real 0m00.25s user 0m00.60s system 23001 184002 1193478 0m00.65s real 0m00.28s user 0m00.55s system 24001 192002 1245368 0m00.69s real 0m00.34s user 0m00.58s system 25001 200002 1297258 0m00.73s real 0m00.34s user 0m00.62s system 26001 208002 1349148 0m00.76s real 0m00.40s user 0m00.62s system Leaf:/sdcard/Test $ Last edited by ottischwenk; 12-19-2022 at 08:50 AM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Onyx Tab Ultra 10 inch, — as fast as a computer? | norweger | Onyx Boox | 3 | 11-26-2022 01:03 PM |
Onyx Tab Ultra | WillAdams | News | 2 | 11-22-2022 04:50 PM |
Pocketbook Ultra | beachwanderer | PocketBook | 73 | 11-18-2014 02:37 PM |
Ultra-cheap ultra-mobile laptop comparison matrix | branko | News | 48 | 09-03-2007 06:23 PM |