Do you bill based on physical RAM usage or virtual memory allocation?
flo4604
PROOP

2 months ago

How do you measure memory usage for billing - RSS, working set, or virtual size?

Looking to play around with mmap'ing some files

Solved

5 Replies

Railway
BOT

2 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


brody
EMPLOYEE

2 months ago

Railway measures memory usage for billing purposes based on actual resource consumption, not virtual memory allocation.


Status changed to Awaiting User Response Railway 3 months ago


flo4604
PROOP

2 months ago

I don't get where the 30GB ram usagei s coming from any idea?


Status changed to Awaiting Railway Response Railway 2 months ago


flo4604
PROOP

2 months ago


Via pmap I see
total kB 54604244 2867736 2512276

metrics tab reports 18GB am I missing something?


echohack
EMPLOYEE

2 months ago

Hi!

pmap is measuring virtual memory, which isn't the tool we use to view the running container's cgroup's current memory usage. Notably it will not include the page cache or your kernel's memory (which especially in databases, can get quite large).

Instead we're measuring the actual allocated running memory. Currently we're doing that via the cgroup's /sys/fs/ measurements. I did double check these on your running container, and found that they are accurate.


Status changed to Awaiting User Response Railway 2 months ago


Status changed to Solved echohack 2 months ago


Loading...