Replies: 2 comments 6 replies
-
And how many shared objects are mapped when you run your application unfrozen? |
Beta Was this translation helpful? Give feedback.
0 replies
-
282, so it looks like its a Python on Linux issue. Please close if you agree. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am aware that the question of Linux binary sizes is a recurring one but I have tried the recommendation to run PyInstaller in a virtual env and its made no difference.
The application itself is a modest 15Mb unfortunately it's mapped a staggering number of shared objects into its address space, as shown when I run the command
ll /proc/<PID>/map_files/ | grep "\.so" | cut -d " " -f 11 | sort | uniq
or
lsof -p <PID> | grep "\.so" | wc -l
I see something like this.
For example 87 scipy shared objects were gathered from scipy even though the application imports just one scipy module
import scipy.stats.distributions
Is there a way to cull the excessive mapping of shared objects?
Beta Was this translation helpful? Give feedback.
All reactions