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?
#7
Hello!

# First, create a file
sudo dd if=/dev/zero of=/path/swap.img bs=2048 count=1M

#Format it
sudo mkswap /path/swap.img

# Open and add an entry to /etc/fstab file like this. As root. Save it.
/path/swap.img swap swap sw    0   0

# Make it active
sudo swapon /path/swap.img
This will create 2GB swap file. 

To open /etc/fstab as root into the default editor

sudo xdg-open /etc/fstab
"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, 05:34 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,179 Feb-25-2022, 06:31 PM
Last Post: jao
  How to make a Vocal synthesizer program on Python? Seadust 3 3,624 Jan-28-2021, 06:26 PM
Last Post: gonnach
  How to make a Python program run in a dos shell (cmd) Pedroski55 2 2,372 Nov-09-2020, 10:17 AM
Last Post: DeaD_EyE
  I try to make Heron formula program abcd 7 3,495 Oct-22-2020, 12:48 AM
Last Post: abcd
  Make a Python program executable in Windows Pedroski55 1 2,142 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,821 Apr-18-2020, 10:05 AM
Last Post: Shahmadhur13
  how to make a program with a certain number of multiples? syafiq14 3 2,826 Jan-01-2020, 02:39 PM
Last Post: syafiq14
  How to get mouse coordinates on click and release OhNoSegFaultAgain 1 3,025 May-17-2019, 06:56 PM
Last Post: buran
  How to make a program run "online"? DanielTkach 2 2,573 Apr-09-2019, 11:59 PM
Last Post: DanielTkach
  Python 3.4: the only release to create .EXE standalone without .dll samsonite 7 5,873 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