-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VSZ raised 8M after every control time, is it normal? #69
Comments
From what I can gather in Instruments for a short period of time, it seems that controlling accessory doesn't cause any leak. The leak on OSX w/ OpenSSL seems to focus on the session pairing. My OpenWRT routers only seeing 2MB per command (then again, mine is mostly binary switches) |
But in the meantime, I don't think it will be a big matter. In order to fill your VM, it would probably takes awhile? |
my openwrt meminfo: |
Consider your system not having swap, wouldn't 4 more instruction and your system crashed already? |
Can you try putting pthread_detach(pthread_self()); on the line 273 of PHKNetworkIP.cpp? |
it doesn't work, I found it increased because the code in PHKAccessory.cpp line 553-568, if i make the updateNotify = true , the VSZ wouldn't raise, but I know it should not be so |
Add the pthread_detach() at the beginning of broadcastMessage and connectionLoop, then recompile. and also It works on Ubuntu (basically halves the amount since the program gets memory only if it's needed, but virutal page size = sum of all thread theortical stack size) |
I just take a look at the meminfo (really busy this week): I have one running in a house in Hong Kong, and under the optimized version it takes about 13MB in 21% of virtual memory space. I know it's not in the KB boundary, but it does not grow, and most of the space is reserved in case of pthread grow (which means the space is not taken), or just dynamic library (which means the space is used by loading the library, which takes about 10MB thanks to OpenSSL etc) |
Hello @etwmc . Greeting |
Hello.
I ran it on an openwrt, and with cmd top I found that VSZ raised high, every time it increased 8M,
is this a problem?
Greeting
The text was updated successfully, but these errors were encountered: