.dat persistent savefile running very slow

Non release banter
Kartex
White ninja
White ninja
Posts: 8
Joined: 31 Aug 2019, 08:00
Distribution: Porteus 4.0

.dat persistent savefile running very slow

Post#1 by Kartex » 31 Aug 2019, 15:14

So, my computer is currently lacking a hard drive and the only storage device I have is a 32 GB USB stick on which I installed Porteus 4.0 (64 bit edition). Since the USB drive is formatted with fat32 (I cannot format it with a Linux filesystem), I had to create a .dat file to save changes upon reboot. So I created a 4 GB savefile (I actually allocated 16 GB, but for some reason it has a 4 GB limit it cannot go beyond). It works, but the system is extremely slow and with poor performance. For example, I do not need to install Chrome all over again, which is good, but the browser itself is very very slow, with simple pages like google.com taking several minutes to load (and no, it is not a connection speed problem) and constant crashes. How can I fix this problem and make the system run faster? I have already tried booting from RAM (which it claims to cause a `huge increase` in speed) but it does nothing.

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

.dat persistent savefile running very slow

Post#2 by Ed_P » 31 Aug 2019, 15:54

A couple of things you can do. 1. Format the USB drive as exFAT. FAT32 has a 4 GB file limit, exFAT does not. 2. Change the cheatcode for changes= to changes=EXIT: this makes changes to be saved when you shut down Porteus. If the USB drive is slow shutting down may take a minute but it's better than a sluggish system when it's running. BTW My save.dat file is .5 GB. :)
Ed

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

.dat persistent savefile running very slow

Post#3 by donald » 31 Aug 2019, 16:07

Some Questions:
Which Desktop do you use (kde,xfce etc)?
and more important, how much physical RAM do you have?
Please post the outcome of

Code: Select all

guest@porteus:~$ free -m
while Chrome is running.

Kartex
White ninja
White ninja
Posts: 8
Joined: 31 Aug 2019, 08:00
Distribution: Porteus 4.0

.dat persistent savefile running very slow

Post#4 by Kartex » 31 Aug 2019, 16:34

Ed_P wrote:
31 Aug 2019, 15:54
A couple of things you can do. 1. Format the USB drive as exFAT. FAT32 has a 4 GB file limit, exFAT does not. 2. Change the cheatcode for changes= to changes=EXIT: this makes changes to be saved when you shut down Porteus. If the USB drive is slow shutting down may take a minute but it's better than a sluggish system when it's running. BTW My save.dat file is .5 GB. :)
1. I have already tried that (using Universal USB Installer) and I get an error message saying I can only format it as fat32. Perhaps I should try a different ISO manager? Which one?
2. I haven't tried that yet. Thanks for the suggestion. Gonna try it now.
donald wrote:
31 Aug 2019, 16:07
Some Questions:
Which Desktop do you use (kde,xfce etc)?
and more important, how much physical RAM do you have?
Please post the outcome of

Code: Select all

guest@porteus:~$ free -m
while Chrome is running.
I use LXDE and my computer has 8 GB of RAM.

As to the outcome, the system is so slow that I don't even think I'll be able to post the feedback through it (right now I'm using running the fresh, non-persistent system), but I'll try. If this helps, right now it says -n is an invalid option:
Image

Kartex
White ninja
White ninja
Posts: 8
Joined: 31 Aug 2019, 08:00
Distribution: Porteus 4.0

.dat persistent savefile running very slow

Post#5 by Kartex » 31 Aug 2019, 16:40

Oh, sorry. I just saw you asked for -m instead. Here's the outcome right now:
Image

Kartex
White ninja
White ninja
Posts: 8
Joined: 31 Aug 2019, 08:00
Distribution: Porteus 4.0

.dat persistent savefile running very slow

Post#6 by Kartex » 31 Aug 2019, 17:17

Update: Now on the sluggish persistent system, the memory usage in MB is indeed much lower. I finally managed to screenshot and upload it:

Image

How do I make it use more memory to improve performance?

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

.dat persistent savefile running very slow

Post#7 by donald » 31 Aug 2019, 17:27

8 GB is by far sufficent.

I assume you managed to put the chrome module into the modules folder,no?

Code: Select all

guest@porteus:~$ ls $PORTDIR/modules
will show it.

where did you store the save,dat file?
It should be on the physical drive not somewhere in the live filesystem.

EDIT
Here is an Example of an usb thumbdrive formatted with fat32 and having a save.dat file.

The file is at /mnt/sdb1/porteussave.dat
(you may have sda1 because there is no HDD)

adding the path to the file in /mnt/sdb1/porteus/porteus-v4.0-x86_64.cfg
did not work.

adding the path to the file in /mnt/sdb1/boot/syslinux/porteus.cfg
so it looks like this
APPEND changes=/mnt/sdb1/porteussave.dat
does work.

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

.dat persistent savefile running very slow

Post#8 by Ed_P » 31 Aug 2019, 21:54

donald, if the save.dat file is on the root of the drive try changing the porteus.cfg file to be just:

Code: Select all

APPEND changes=EXIT:/porteussave.dat
Ed

Kartex
White ninja
White ninja
Posts: 8
Joined: 31 Aug 2019, 08:00
Distribution: Porteus 4.0

.dat persistent savefile running very slow

Post#9 by Kartex » 01 Sep 2019, 06:46

Ed P's solution is working. With the cheatcode EXIT:porteus/optional/porteussave.dat (I put the savefile on the /optional/ folder), the system is running much faster, even with low memory usage. Thank you! :Yahoo!:

Kartex
White ninja
White ninja
Posts: 8
Joined: 31 Aug 2019, 08:00
Distribution: Porteus 4.0

.dat persistent savefile running very slow

Post#10 by Kartex » 01 Sep 2019, 07:07

Updated: Although I've managed to get a fast-running system, for some reason it is displaying no sound :%) What could have happened?

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

.dat persistent savefile running very slow

Post#11 by Ed_P » 01 Sep 2019, 13:36

Kartex wrote:
01 Sep 2019, 06:46
the system is running much faster, even with low memory usage. Thank you! :Yahoo!:
:good:
Ed

Post Reply