Python Forum
How to I make my program release memory?
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to I make my program release memory?
#12
As you say using flash memory for swap isn't good cause multiple write operations. You didn't tell that that is the case. 
Anyway, you can check memory usage for application with top or htop command. The second one is more convenient but might be not installed. If 1GB suites you you may repeat the creation of the file, format it as a swap space and activate it again. If you keep path and the file name the same no need to edit /etc/fstab

You did it already... There is swapoff command. The computer may do some read/write on the swap so you Should turn it off before that. Unmount it, comment it in /etc/fstab, then do the same again with 1GB file. You have to be root or use sudo.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
RE: How to I make my program release memory? - by wavic - Dec-18-2016, 10:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is it possible to make a program recognize how many clicks it has had on the monitor? jao 0 1,164 Feb-25-2022, 06:31 PM
Last Post: jao
  How to make a Vocal synthesizer program on Python? Seadust 3 3,595 Jan-28-2021, 06:26 PM
Last Post: gonnach
  How to make a Python program run in a dos shell (cmd) Pedroski55 2 2,337 Nov-09-2020, 10:17 AM
Last Post: DeaD_EyE
  I try to make Heron formula program abcd 7 3,441 Oct-22-2020, 12:48 AM
Last Post: abcd
  Make a Python program executable in Windows Pedroski55 1 2,125 Sep-26-2020, 12:34 AM
Last Post: bowlofred
  I code a program to solve puzzle but i can't make it more dynamic. Shahmadhur13 5 2,770 Apr-18-2020, 10:05 AM
Last Post: Shahmadhur13
  how to make a program with a certain number of multiples? syafiq14 3 2,798 Jan-01-2020, 02:39 PM
Last Post: syafiq14
  How to get mouse coordinates on click and release OhNoSegFaultAgain 1 3,009 May-17-2019, 06:56 PM
Last Post: buran
  How to make a program run "online"? DanielTkach 2 2,558 Apr-09-2019, 11:59 PM
Last Post: DanielTkach
  Python 3.4: the only release to create .EXE standalone without .dll samsonite 7 5,833 Feb-28-2019, 09:20 AM
Last Post: samsonite

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020