-
Knoppix 8.1 flash persistent image seems really slow
Hi all,
I was working with a flash install of knoppix and it seems really slow, much slower than I would expect.
so I run a command like dpkg on knoppix running without any persistent image (just using the ram of the system) and it goes instantly.
Code:
time sudo dpkg -i mame_0.186-dmo1_i386.deb mame-data_0.186-dmo1_all.deb
Selecting previously unselected package mame.
(Reading database ... 449729 files and directories currently installed.)
Preparing to unpack .../mame_0.186-dmo1_i386.deb ...
Unpacking mame (1:0.186-dmo1) ...
Selecting previously unselected package mame-data.
Preparing to unpack .../mame-data_0.186-dmo1_all.deb ...
Unpacking mame-data (1:0.186-dmo1) ...
Setting up mame-data (1:0.186-dmo1) ...
Setting up mame (1:0.186-dmo1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for menu (2.1.47+b1) ...
real 0m13.315s
user 0m6.271s
sys 0m5.182s
If I run with a persistent hard drive image, I get snappy results also.
However, when I use a flash drive it's a different story.
Running the same command under a persistent flash drive it takes forever...
Code:
time sudo dpkg -i mame-data_0.189+dfsg.1-1_all.deb mame_0.189+dfsg.1-1_i386.deb
Selecting previously unselected package mame-data.
(Reading database ... 449729 files and directories currently installed.)
Preparing to unpack .../mame-data_0.189+dfsg.1-1_all.deb ...
Unpacking mame-data (0.189+dfsg.1-1) ...
Selecting previously unselected package mame.
Preparing to unpack .../mame_0.189+dfsg.1-1_i386.deb ...
Unpacking mame (0.189+dfsg.1-1) ...
Setting up mame-data (0.189+dfsg.1-1) ...
Setting up mame (0.189+dfsg.1-1) ...
Processing triggers for desktop-file-utils (0.23-2) ...
Processing triggers for gnome-menus (3.13.3-9) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for hicolor-icon-theme (0.17-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
real 6m23.851s
user 0m8.202s
sys 0m6.430s
Why is flash so slow? I wouldn't expect it to take multiple minutes to do these things. 6 minutes seems like an eternity.
Is it because it wants to journalize everything with reiserfs?
-
Just for comparison, here's the same operation using a hard drive persistent installation (fat32 with fat32 overlay file)
Code:
knoppix@Microknoppix:~$ time sudo dpkg -i mame_0.186-dmo1_i386.deb mame-data_0.186-dmo1_all.deb
Selecting previously unselected package mame.
(Reading database ... 449729 files and directories currently installed.)
Preparing to unpack .../mame_0.186-dmo1_i386.deb ...
Unpacking mame (1:0.186-dmo1) ...
Selecting previously unselected package mame-data.
Preparing to unpack .../mame-data_0.186-dmo1_all.deb ...
Unpacking mame-data (1:0.186-dmo1) ...
Setting up mame-data (1:0.186-dmo1) ...
Setting up mame (1:0.186-dmo1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for menu (2.1.47+b1) ...
real 0m20.650s
user 0m6.294s
sys 0m5.537s
-
Okay, I thought I'd try this again, I bought two identical PNY Turbo Attache 4 USB 3.0 16GB flash drives, one is formatted with reiserfs overlay partition and the other is fat32 overlay file,
So let's do the same operation:
The reiserfs partition overlay:
Code:
knoppix@Microknoppix:~$ time sudo dpkg -i mamepackages/mame_0.189+dfsg.1-1_i386.deb mamepackages/mame-data_0.189+dfsg.1-1_all.deb
dpkg: warning: downgrading mame from 1:0.186-dmo1 to 0.189+dfsg.1-1
(Reading database ... 451601 files and directories currently installed.)
Preparing to unpack .../mame_0.189+dfsg.1-1_i386.deb ...
Unpacking mame (0.189+dfsg.1-1) over (1:0.186-dmo1) ...
dpkg: warning: downgrading mame-data from 1:0.186-dmo1 to 0.189+dfsg.1-1
Preparing to unpack .../mame-data_0.189+dfsg.1-1_all.deb ...
Unpacking mame-data (0.189+dfsg.1-1) over (1:0.186-dmo1) ...
Setting up mame-data (0.189+dfsg.1-1) ...
Setting up mame (0.189+dfsg.1-1) ...
Installing new version of config file /etc/mame/presets/gameboy.ini ...
Installing new version of config file /etc/mame/presets/gba.ini ...
Installing new version of config file /etc/mame/presets/lcd-matrix.ini ...
Installing new version of config file /etc/mame/presets/lcd.ini ...
Installing new version of config file /etc/mame/presets/raster.ini ...
Installing new version of config file /etc/mame/presets/vector-mono.ini ...
Installing new version of config file /etc/mame/presets/vector.ini ...
Processing triggers for desktop-file-utils (0.23-2) ...
Processing triggers for gnome-menus (3.13.3-9) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for hicolor-icon-theme (0.17-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for menu (2.1.47+b1) ...
real 18m34.462s
user 0m9.199s
sys 0m7.050s
knoppix@Microknoppix:~$ time sudo dpkg -i mamepackages/mame_0.186-dmo1_i386.deb mamepackages/mame-data_0.186-dmo1_all.deb
(Reading database ... 451579 files and directories currently installed.)
Preparing to unpack .../mame_0.186-dmo1_i386.deb ...
Unpacking mame (1:0.186-dmo1) over (0.189+dfsg.1-1) ...
Preparing to unpack .../mame-data_0.186-dmo1_all.deb ...
Unpacking mame-data (1:0.186-dmo1) over (0.189+dfsg.1-1) ...
Setting up mame-data (1:0.186-dmo1) ...
Setting up mame (1:0.186-dmo1) ...
Installing new version of config file /etc/mame/presets/gameboy.ini ...
Installing new version of config file /etc/mame/presets/gba.ini ...
Installing new version of config file /etc/mame/presets/lcd-matrix.ini ...
Installing new version of config file /etc/mame/presets/lcd.ini ...
Installing new version of config file /etc/mame/presets/raster.ini ...
Installing new version of config file /etc/mame/presets/vector-mono.ini ...
Installing new version of config file /etc/mame/presets/vector.ini ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for menu (2.1.47+b1) ...
Processing triggers for hicolor-icon-theme (0.17-1) ...
Processing triggers for desktop-file-utils (0.23-2) ...
Processing triggers for gnome-menus (3.13.3-9) ...
Processing triggers for mime-support (3.60) ...
real 19m0.710s
user 0m7.928s
sys 0m2.538s
knoppix@Microknoppix:~$
The fat32 file overlay:
Code:
knoppix@Microknoppix:~$ time sudo dpkg -i /mnt-system/mamepackages/mame_0.189+dfsg.1-1_i386.deb /mnt-system/mamepackages/mame-data_0.189+dfsg.1-1_all.deb
dpkg: warning: downgrading mame from 1:0.186-dmo1 to 0.189+dfsg.1-1
(Reading database ... 451601 files and directories currently installed.)
Preparing to unpack .../mame_0.189+dfsg.1-1_i386.deb ...
Unpacking mame (0.189+dfsg.1-1) over (1:0.186-dmo1) ...
dpkg: warning: downgrading mame-data from 1:0.186-dmo1 to 0.189+dfsg.1-1
Preparing to unpack .../mame-data_0.189+dfsg.1-1_all.deb ...
Unpacking mame-data (0.189+dfsg.1-1) over (1:0.186-dmo1) ...
Setting up mame-data (0.189+dfsg.1-1) ...
Setting up mame (0.189+dfsg.1-1) ...
Installing new version of config file /etc/mame/presets/gameboy.ini ...
Installing new version of config file /etc/mame/presets/gba.ini ...
Installing new version of config file /etc/mame/presets/lcd-matrix.ini ...
Installing new version of config file /etc/mame/presets/lcd.ini ...
Installing new version of config file /etc/mame/presets/raster.ini ...
Installing new version of config file /etc/mame/presets/vector-mono.ini ...
Installing new version of config file /etc/mame/presets/vector.ini ...
Processing triggers for desktop-file-utils (0.23-2) ...
Processing triggers for gnome-menus (3.13.3-9) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for hicolor-icon-theme (0.17-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for menu (2.1.47+b1) ...
real 4m31.019s
user 0m8.833s
sys 0m5.901s
knoppix@Microknoppix:~$ time sudo dpkg -i /mnt-system/mamepackages/mame_0.186-dmo1_i386.deb /mnt-system/mamepackages/mame-data_0.186-dmo1_all.deb
(Reading database ... 451579 files and directories currently installed.)
Preparing to unpack .../mame_0.186-dmo1_i386.deb ...
Unpacking mame (1:0.186-dmo1) over (0.189+dfsg.1-1) ...
Preparing to unpack .../mame-data_0.186-dmo1_all.deb ...
Unpacking mame-data (1:0.186-dmo1) over (0.189+dfsg.1-1) ...
Setting up mame-data (1:0.186-dmo1) ...
Setting up mame (1:0.186-dmo1) ...
Installing new version of config file /etc/mame/presets/gameboy.ini ...
Installing new version of config file /etc/mame/presets/gba.ini ...
Installing new version of config file /etc/mame/presets/lcd-matrix.ini ...
Installing new version of config file /etc/mame/presets/lcd.ini ...
Installing new version of config file /etc/mame/presets/raster.ini ...
Installing new version of config file /etc/mame/presets/vector-mono.ini ...
Installing new version of config file /etc/mame/presets/vector.ini ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for menu (2.1.47+b1) ...
Processing triggers for hicolor-icon-theme (0.17-1) ...
Processing triggers for desktop-file-utils (0.23-2) ...
Processing triggers for gnome-menus (3.13.3-9) ...
Processing triggers for mime-support (3.60) ...
real 2m3.485s
user 0m7.394s
sys 0m1.280s
With the reiserfs overlay partition, both operations take 37 minutes,
with the ext2 fat32 overlay file, both operations take around 7 minutes.
So reiserfs is about 5 times slower in this case.
It's pretty clear that you want to use the overlay file when you install to a flash drive.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot picture](/store/img/g/pB0AAOSwrbRkIWhk/s-l225/Fanxiang-4TB-2TB-1TB-SSD-550MB-s-2-5-SATA-III-Inte.jpg)
Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot
$188.99
![4 TB SSD SATA III Drive 2.5](/store/img/g/3EQAAOSwjNlmAztr/s-l225/4-TB-SSD-SATA-III-Drive-2-5-Solid-State-Drive-SATA.jpg)
4 TB SSD SATA III Drive 2.5" Solid State Drive SATAIII 6Gb/s UP to 540MB/s
$148.00
![Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot picture](/store/img/g/vt0AAOSwAgVls0tY/s-l225/Fanxiang-M-2-SATA-SSD-2TB-1TB-512GB-256GB-SSD-Inte.jpg)
Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot
$109.99
![Fanxiang 256GB 512GB 1TB 2TB 4TB Internal SSD 2.5](/store/img/g/dccAAOSw1dpmXnCy/s-l225/Fanxiang-256GB-512GB-1TB-2TB-4TB-Internal-SSD-2-5-.jpg)
Fanxiang 256GB 512GB 1TB 2TB 4TB Internal SSD 2.5"SATA III Drive Desktop MAC Lot
$188.09
![Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5](/store/img/g/RzIAAOSwSZNlN-zB/s-l225/Patriot-P210-128GB-256GB-512GB-1TB-2TB-2-5-SATA-3-.jpg)
Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot
$13.99
![Samsung 870 EVO 500GB 2.5 Inch SATA III Internal SSD Brand New MZ-77E500B/AM picture](/store/img/g/8koAAOSwV61maW9l/s-l225/Samsung-870-EVO-500GB-2-5-Inch-SATA-III-Internal-S.jpg)
Samsung 870 EVO 500GB 2.5 Inch SATA III Internal SSD Brand New MZ-77E500B/AM
$34.98
![Samsung 256GB 2.5](/store/img/g/QlYAAOSwVxhmLAnC/s-l225/Samsung-256GB-2-5-7mm-Solid-State-Drive-SSD.jpg)
Samsung 256GB 2.5" 7mm Solid State Drive SSD
$13.99
![Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture](/store/img/g/Nm4AAOSwUYBmXuae/s-l225/Netac-1TB-2TB-512GB-Internal-SSD-2-5-SATA-III-6Gb-.jpg)
Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot
$13.99
![512GB 1TB 2tb 4tb 256g M.2 2280 SSD SATA3 Internal Solid State Drive Lot Dogfish picture](/store/img/g/YbYAAOSw-2lj5eV8/s-l225/512GB-1TB-2tb-4tb-256g-M-2-2280-SSD-SATA3-Internal.jpg)
512GB 1TB 2tb 4tb 256g M.2 2280 SSD SATA3 Internal Solid State Drive Lot Dogfish
$271.99
![Fanxiang SSD 4TB 2TB 1TB 512GB SATA SSD 2.5'' III Internal Solid State Drive lot picture](/store/img/g/pB0AAOSwrbRkIWhk/s-l225/Fanxiang-SSD-4TB-2TB-1TB-512GB-SATA-SSD-2-5-III-In.jpg)
Fanxiang SSD 4TB 2TB 1TB 512GB SATA SSD 2.5'' III Internal Solid State Drive lot
$108.29