Oct-18-2021, 09:42 PM
I'm running python on an embedded Linux system with a limited amount of main memory.
Is there any techniques that I can use to reduce system memory used by Cpython.
I'm presently using Python 2.7, but will be transiting to Python 3.8.
In top I see:
VIRT RES SHR
6.1m 3.8m 2.2m
for the trivial script:
import time
while True:
time.sleep(1)
The actual scripts that I run are taking about 30MB.
Any suggestions would be appreciated.
Is there any techniques that I can use to reduce system memory used by Cpython.
I'm presently using Python 2.7, but will be transiting to Python 3.8.
In top I see:
VIRT RES SHR
6.1m 3.8m 2.2m
for the trivial script:
import time
while True:
time.sleep(1)
The actual scripts that I run are taking about 30MB.
Any suggestions would be appreciated.