Discussion
Loading...

#Tag

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Hacker News
Hacker News
@h4ckernews@mastodon.social  ·  activity timestamp 2 days ago

Static Allocation with Zig

https://nickmonad.blog/2025/static-allocation-with-zig-kv/

#HackerNews #StaticAllocation #Zig #Programming #Language #MemoryManagement #SoftwareDevelopment

Static Allocation with Zig

Introducing kv, a statically allocated key/value server.
  • Copy link
  • Flag this post
  • Block
Hacker News
Hacker News
@h4ckernews@mastodon.social  ·  activity timestamp 4 days ago

Detect memory leaks of C extensions with psutil and psleak

https://gmpy.dev/blog/2025/psutil-heap-introspection-apis

#HackerNews #DetectMemoryLeaks #psutil #psleak #CExtensions #MemoryManagement #TechNews

Giampaolo Rodola

  • Copy link
  • Flag this post
  • Block
Hacker News
Hacker News
@h4ckernews@mastodon.social  ·  activity timestamp last month

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:
Eugene :freebsd: :emacslogo:
@evgandr@mastodon.bsd.cafe  ·  activity timestamp last month

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:
Eugene :freebsd: :emacslogo:
@evgandr@mastodon.bsd.cafe  ·  activity timestamp last month

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

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.41 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct