Hi ashfame
I am not sure if the epiphany browser is not functional or I am running out of memory ...
Spoiler alert. Web browsers are selfish and inconsiderate programs. In their attempt to cache every last byte of data they sucked
in, they will consume most/all of your RAM. Epiphany may also be caching stuff to disk (/home/tc/) which in your case also resides
in RAM.
... I tried launching it via terminal and saw messages regarding "memory pressure", but when I check free memory by running `free -m`, it tells me ~12M is free ...
I would call that "out of memory territory".
... but over 300M is cached, which as per my understanding can be released by kernel when required, unless in TinyCore RAM based file system is shown under cached and that's actually not freeable memory?
I've noticed that even if you tell the system to clear the cache, it never goes to zero. That suggests that not everything that is currently
cached can be released.
I believe you disabled the zswap to free up RAM. You could try adding a little back to see if it relieves the pressure any. Maybe try
adding about 50 Mbytes:
... By default, Tinycore uses 25% of your RAM for zswap (swap space in RAM). If you want to change the amount used, try this:
First, boot using the nozswap boot code.
Then
sudo su
# remove all existing swap
swapoff -a
# Set the size to 50000 K bytes
echo "50000K" > /sys/block/zram0/disksize
# Create the swap file
mkswap /dev/zram0 >/dev/null 2>&1
# Update fstab.
echo "/dev/zram0 swap swap defaults,noauto 0 0" >> /etc/fstab # Lets swapoff -a work
# Enable this swap device first so it has priority.
swapon /dev/zram0
# Enable any remaining swap devices.
swapon -a
exit
To see the status of your swap devices:
cat /proc/swaps
If this does what you want, then add it to your /opt/bootsync.sh file before the line that calls /opt/bootlocal.sh. Do not include
the lines that say sudo su or exit.
Hi Rich, thanks for the instructions. I wasn't convinced if use of swap could help at all, since it would barely have unused code that it can push to swap. But perhaps a compressed swap would result in some sort of optimization, so I simply tried removing the "nozswap" bootcode and it didn't result in much of a difference. The web process inside of the browser crashed at the same point where it was crashing without swap and at that point, zswap was full 100M too. It just got sluggish that browser was struggling to show anything inside it. I am guessing because of constant swap in/out movement.
I tried your instruction to use a little swap to see if that makes any difference but it didn't let me update the disksize for swap stating it was busy. I did use `swapoff -a` before but I think your instructions required not to have swap enabled? Anyway, I don't think that will make a difference unless I reduce the size of this browser itself. I got my hands on palemoon and vivaldi binary that I am gonna try using and see if they occupy less disk space.
Great point about browser trying to cache stuff as well. I will explore if I can disable that using a flag or something.