Discussion
Loading...

#Tag

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Hacker News
@h4ckernews@mastodon.social  ·  activity timestamp 3 weeks ago

I wrote a minimal memory allocator in C

https://github.com/t9nzin/memory

#HackerNews #minimalmemoryallocator #Cprogramming #memorymanagement #HackerNews #openSource

  • Copy link
  • Flag this post
  • Block
Stefano Marinelli boosted
Eugene :freebsd: :emacslogo:
@evgandr@mastodon.bsd.cafe  ·  activity timestamp 4 weeks ago

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 drgn_flat_sob

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 drgn_happy

#BSD #memoryManagement

Tuning NetBSD VM behaviour (swap usage)

  • Copy link
  • Flag this post
  • Block
Eugene :freebsd: :emacslogo:
@evgandr@mastodon.bsd.cafe  ·  activity timestamp 4 weeks ago

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 drgn_flat_sob

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 drgn_happy

#BSD #memoryManagement

Tuning NetBSD VM behaviour (swap usage)

  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-alpha.8 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login