Railway on demand pricing for buff/cache memory vs regular memory pricing
avxo
PROOP

16 days ago

Hey peeps

So i started off importing a ton of data into a postgres DB on Railway.
The estimated costs shot up to 200 USD a month, so I moved the data to a Postgres DB on a VPS at OVH for $30.

That's when I could check the memory usage properly

Due to the data being 30 million records (archive data …. not dynamic etc) it holds 39GB in buff/cache

This doesn't affect the performance as i have 55GB available on a 64GB ram VPS

ubuntu@vps-x:~$ free -h

total used free shared buff/cache available

Mem: 61Gi 5.7Gi 17Gi 645Mi 39Gi 55Gi



Real memory use is only 5.7GB
Buff cache is holding 39GB

The question is.......... Does Railway charge for buff cache

Its not in any docs. ... Grok searched the web for me and no luck

So here I am....

It's a bit of a bummer if the buff cache is being billed not the actual used vs/ available if that's the case.

Cheers

5 Replies

If the $200 estimated costs were coming from Memory Usage then I'd assume they do charge for it.

Was Postgres populating the buff/cache when the memory usage shot up? If so it's probably safe to assume that Railway does charge for it.

(btw, you can SSH into running Railway services if you want to use free -h to check the buff/cache usage)


avxo
PROOP

16 days ago

Thanks! It shows the whole shared environment across all users, not just for me, not my specific usage.

root@69fe4aa07bee:/# free -h

total used free shared buff/cache available

Mem: 384Gi 273Gi 4.9Gi 16Gi 112Gi 111Gi

Swap: 186Gi 1.0Gi 185Gi


avxo
PROOP

16 days ago

Anyway, we went off topic. Hope to not pay for buff.


well it looks like you might have to since it is technically memory usage


brody
EMPLOYEE

16 days ago

Tthe memory usage metric includes both used and buff/cache memory.

Though, you are looking at the host metrics in that screenshot.


Loading...