I wrote a minimal memory allocator in C
https://github.com/t9nzin/memory
#HackerNews #minimalmemoryallocator #Cprogramming #memorymanagement #HackerNews #openSource
#Tag
I wrote a minimal memory allocator in C
https://github.com/t9nzin/memory
#HackerNews #minimalmemoryallocator #Cprogramming #memorymanagement #HackerNews #openSource
Since, one Java application (OpenHAB) is used on my #NetBSD server I met with huge swap usage — always near 512 Mb of swap was used. This wasn't good, since I'm using SSD — I was afraid that my old SSD will wear out and die, but for now I don't have money to buy a new SSD disk
Tweaked Java initial and max heap sizes (-Xms, -Xmx) and some settings for GC, to call it more often in trade of OpenHAB responsiveness — obviously it didn't help. Then I tweaked NetBSD memory management to force system to use swap only if RAM is almost full — by this cool guide: https://imil.net/NetBSD/mirror/vm_tune.html
And it doesn't help too. Suddenly for me, but looks like these settings were applied to the kernel after reboot, not after call to sysctl.
So, for now I have a system with 800-900 Mb RAM in use and ZERO swap in use
Since, one Java application (OpenHAB) is used on my #NetBSD server I met with huge swap usage — always near 512 Mb of swap was used. This wasn't good, since I'm using SSD — I was afraid that my old SSD will wear out and die, but for now I don't have money to buy a new SSD disk
Tweaked Java initial and max heap sizes (-Xms, -Xmx) and some settings for GC, to call it more often in trade of OpenHAB responsiveness — obviously it didn't help. Then I tweaked NetBSD memory management to force system to use swap only if RAM is almost full — by this cool guide: https://imil.net/NetBSD/mirror/vm_tune.html
And it doesn't help too. Suddenly for me, but looks like these settings were applied to the kernel after reboot, not after call to sysctl.
So, for now I have a system with 800-900 Mb RAM in use and ZERO swap in use
A space for Bonfire maintainers and contributors to communicate