Increase swap? Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Increase swap?

Post by Joulinar »

simply execute the command I posted above and magic happen ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
kannz
Posts: 51
Joined: Wed Sep 29, 2021 2:37 pm

Re: Increase swap?

Post by kannz »

looks like it's increased to 1gb. Thank you
kannz
Posts: 51
Joined: Wed Sep 29, 2021 2:37 pm

Re: Increase swap?

Post by kannz »

heyo comin back to this topic of mine. probably no real issue. I was wondering if the large amount of files i have sitting on my hdd is making dietpi use up a lot of ram as buff/cache?
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Increase swap?

Post by Joulinar »

It depends on how often files are used/accessed and which application is using them. Just because they are stored on a HDD, doesn't mean they are moved into memory.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
kannz
Posts: 51
Joined: Wed Sep 29, 2021 2:37 pm

Re: Increase swap?

Post by kannz »

hmm im using it for smb and pihole. also my samba share responds very quickly. how would i be able to tell if it is putting the hdd to sleep when not in use?
kannz
Posts: 51
Joined: Wed Sep 29, 2021 2:37 pm

Re: Increase swap?

Post by kannz »

how do i tell how much memory is being taken by the gpu?
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Increase swap?

Post by Joulinar »

honestly I don't have a C2 as all my devices are RPi. On RPi it's configured inside config.txt

Code: Select all

cat /boot/config.txt | grep gpu_mem
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
kannz
Posts: 51
Joined: Wed Sep 29, 2021 2:37 pm

Re: Increase swap?

Post by kannz »

Says no such file or directory. Hmm looks like odroid has a dynamic gpu memory system. Doesn't use manual allocation apparently..it uses whatever memory is not used.
User avatar
MichaIng
Site Admin
Posts: 3514
Joined: Sat Nov 18, 2017 6:21 pm

Re: Increase swap?

Post by MichaIng »

The Odroid C2 has a fixed amount of system memory reserved for the GPU. Check:

Code: Select all

free -m
The difference of total memory to ~2000 MiB is what the GPU/VPU uses. You can disable it via dietpi-config > Display Options > GPU/RAM Memory Split, which will disable all video output but restores ~300 MiB RAM for the system.

It can be also changed manually via nographics setting in /boot/boot.ini.
kannz
Posts: 51
Joined: Wed Sep 29, 2021 2:37 pm

Re: Increase swap?

Post by kannz »

thank you the small amount of extra memory may help use swap a little less. :)
Post Reply