[Solved] Does the USB flash R/W matter?
-
- White ninja
- Posts: 5
- Joined: 24 Jan 2017, 05:10
- Distribution: Porteus XFCE 32-bit
- Location: Bulgaria
[Solved] Does the USB flash R/W matter?
Hello, I'm going to buy an USB flash specially for Porteus, and I'm wondering if there is something else I should be looking for aside from the capacity of the flash? Does the read and write speeds of the flash affects the performance in any way (I usually use the copy2ram cheat-code)?
Last edited by Quen on 29 Jan 2017, 09:52, edited 1 time in total.
-
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Re: Does the USB flash R/W matter?
If by this you mean you are going to pull out the stick when Porteus says it is safe to do so, then it should not matter at all. However different if you intend to save files to the stick.Quen wrote:Does the read and write speeds of the flash affects the performance in any way (I usually use the copy2ram cheat-code)?
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
-
- White ninja
- Posts: 5
- Joined: 24 Jan 2017, 05:10
- Distribution: Porteus XFCE 32-bit
- Location: Bulgaria
Re: Does the USB flash R/W matter?
Well, it's going to be a FAT32 flash and I'm going to put my porteussave.dat on it.. I wonder if I'm going to get any performance improvements or something if I take a flash with 200Mb/s transfer speed instead of a cheaper one with 30Mb/s?Bogomips wrote:If by this you mean you are going to pull out the stick when Porteus says it is safe to do so, then it should not matter at all. However different if you intend to save files to the stick.Quen wrote:Does the read and write speeds of the flash affects the performance in any way (I usually use the copy2ram cheat-code)?
Re: Does the USB flash R/W matter?
You'll have some performance improvement, of course. But in my experience using porteussave.dat is never as fast as using everything inside RAM and then saving just what you really want. I use /mnt/*usbstick*/porteus/rootcopy/etc/rc.d/rc.local_shutdown script to save what I want at the shutdown process. So, for example, I like to restore my Opera's tabs and history every time I reboot, so I put these 2 lines on the script:Quen wrote:Well, it's going to be a FAT32 flash and I'm going to put my porteussave.dat on it.. I wonder if I'm going to get any performance improvements or something if I take a flash with 200Mb/s transfer speed instead of a cheaper one with 30Mb/s?
Code: Select all
cp -u /home/guest/.config/opera/"Current Session" /mnt/sdb1/porteus/rootcopy/home/guest/.config/opera/"Current Session"
cp -u /home/guest/.config/opera/History /mnt/sdb1/porteus/rootcopy/home/guest/.config/opera/History
Code: Select all
cp -u /home/guest/.qmmp/playlist.txt /mnt/sdb1/porteus/rootcopy/home/guest/.qmmp/playlist.txt
- Ed_P
- Contributor
- Posts: 8343
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: Does the USB flash R/W matter?
If you use the changes=EXIT: cheatcode with your save.dat file the only time it is written to is when Porteus is shutdown. So how much is shutting down in 10 seconds verses 40 seconds worth to you? Obviously the times are based on the size of your save.dat file. Mine vary between 320MB and 512MB, large files, like downloads, I move to the flash drive.Quen wrote:Well, it's going to be a FAT32 flash and I'm going to put my porteussave.dat on it.. I wonder if I'm going to get any performance improvements or something if I take a flash with 200Mb/s transfer speed instead of a cheaper one with 30Mb/s?
An interesting approach fulalas. What creates the /rootcopy/etc folders and files? Just using rootcopy? My flash drive's /porteus/rootcopy/ folder is empty.fulalas wrote:I use /mnt/*usbstick*/porteus/rootcopy/etc/rc.d/rc.local_shutdown script to save what I want at the shutdown process. So, for example, I like to restore my Opera's tabs and history every time I reboot, so I put these 2 lines on the script:
Code: Select all
cp -u /home/guest/.config/opera/"Current Session" /mnt/sdb1/porteus/rootcopy/home/guest/.config/opera/"Current Session" cp -u /home/guest/.config/opera/History /mnt/sdb1/porteus/rootcopy/home/guest/.config/opera/History
It should be noted that the non-rootcopy's rc.local_shutdown file needs to be made executable for it to run. At least mine did in 3.2.2 Cinnamon 64-bit. And in doing so it checks the space usage of a save.dat file when shutting down.
Ed
-
- Full of knowledge
- Posts: 2065
- Joined: 17 Jun 2013, 13:17
- Distribution: Porteus 3.2.2 XFCE 32bit
- Location: Germany
Re: Does the USB flash R/W matter?
about copy2ramI usually use the copy2ram cheat-code
as the porteus FAQ states:
Porteus exists in a compressed state on your storage media, with no /root, /bin, /usr, etc. directory structure
on the media itself. The familiar Linux file structure is created on the fly in your computer's RAM during the boot process,
So almost all parts of porteus are running in ram already.
Imo (personal experience)
There is no significant increase of "speed" with copy2ram
If one does not want to pull/plug out the boot device copy2ram is superfluous.
Re: Does the USB flash R/W matter?
I thought this was the most common way of using PorteusEd_P wrote:An interesting approach fulalas.
You need to copy (manually or through a script) everything you want to keep/save from system folders to /mnt/usbstick/porteus/rootcopy folder, then during the boot Porteus will copy everything back to the corresponding folders. For example: I changed some settings of SMPlayer (video player), but I want to keep these settings let's say forever (no need to be always changing them), so I manually copied /home/guest/.config/smplayer/smplayer.ini to mnt/usbstick/porteus/rootcopy/home/guest/.config/smplayer/ . Every time Porteus boots, it makes a copy of this file back to /home/guest/.config/smplayer . But, as I said before, somethings are constantly changing and I want to save them every reboot/shutdown, so I use rc.local_shutdown script.Ed_P wrote:What creates the /rootcopy/etc folders and files? Just using rootcopy? My flash drive's /porteus/rootcopy/ folder is empty.
I didn't have to do anything, just changed rc.local_shutdown script and put it inside /mnt/usbstick/porteus/rootcopy/etc/rc.d/Ed_P wrote:It should be noted that the non-rootcopy's rc.local_shutdown file needs to be made executable for it to run. At least mine did in 3.2.2 Cinnamon 64-bit. And in doing so it checks the space usage of a save.dat file when shutting down.
AFAIK, copy2ram has two advantages:donald wrote:There is no significant increase of "speed" with copy2ram
If one does not want to pull/plug out the boot device copy2ram is superfluous.
1- you can unplug your USB stick after boot
2- all modules inside base and modules folders you try to execute are already loaded in RAM, so they open instantly
So, regarding performance, you're right: copy2ram only moves loading time from modules execution (under demand) to boot.
-
- White ninja
- Posts: 5
- Joined: 24 Jan 2017, 05:10
- Distribution: Porteus XFCE 32-bit
- Location: Bulgaria
Re: Does the USB flash R/W matter?
Now I understand, thanks for the help.
-
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Re: Does the USB flash R/W matter?
If talking performance meaning CPU load, then it seems copy2ram wins out every time on low hardware specs. http://forum.porteus.org/viewtopic.php? ... 344#p50056fulalas wrote:So, regarding performance, you're right: copy2ram only moves loading time from modules execution (under demand) to boot.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB