ramtousd
v0.1.0
Published
TUI that converts RAM usage by process to USD and Apple dollars
Maintainers
Readme
ram-to-usd
RAM is getting expensive. What processes are eating the most $$?

Install
# requires bun and zig
brew install oven-sh/bun/bun zig
# install globally
bun install -g ram-to-usd
# or run directly
bunx ram-to-usdBuild from source
git clone https://github.com/elithrar/ram-to-usd
cd ram-to-usd
bun install
bun run build # outputs to dist/ramtousdUsage
ramtousdPress q or Escape to quit.
How it works
Memory is measured using RSS (Resident Set Size), not virtual memory. RSS represents the actual physical RAM a process is using, though there's some inaccuracy when multiple processes share memory pages - the same memory can be counted more than once.
Also worth noting: modern operating systems want to use your RAM. If you have 48GB, you should expect most of it to be in use - that's the OS doing its job: caching files and keeping things fast.
Configuration
Create ~/.config/ramtousd.jsonc to customize pricing:
{
// PCPartPicker DDR5 average
"regularPricePerGB": 2.50,
// Apple's memory upgrade pricing
"applePricePerGB": 6.25,
// Refresh interval in ms
"refreshIntervalMs": 1000
}License
Apache-2.0
