Skip to content
Sign upLog in
← Back to Community
My repl has 27 gb of RAM really?
Profile icon
CarlyRaeJepsenS
function bTG(num) { return num / Math.pow(10,9) //bytes to gb } console.log(bTG(os.freemem)) console.log(bTG(os.totalmem)) >> 1.775673344 >> 27.335294976

Does my repl really have 27 gigabytes of RAM? And I'm just running 77 lines of random stuff, how does this consume 1 gb? I suspect this is for /home/runner (I guess all the repos on the server?).
How do I find the amount of memory allotted to my repl, and mine only?

Answered by ImagineEngine [earned 5 cycles]
View Answer
Voters
Profile icon
CarlyRaeJepsenS
Comments
hotnewtop
Profile icon
ImagineEngine

I guess this is because repl maybe hosts servers on the same physical device but different ports. Maybe this function tells the allocated RAM for the overall server. Im not sure about this please correct me if im wrong. :)

Profile icon
CarlyRaeJepsenS

@ImagineEngine
Yeah, that makes more sense - some other cloud repos like Glitch occasionally display huge amounts of disk or cpu.

Profile icon
PattanAhmed

@CarlyRaeJepsenS
Hi,
No, Repl.it gives only 500 MB for Free version
Hacker plan gives 2GB of Memory...

Your 77 Lines of codes just take 0.000024 megabytes as per as your program...
Megabytes (MB) is less than Gegabytes (GB)
Thanks!

Hope this helps

Profile icon
AstOwOlfo

27gb? nah lmao not even hacker plan gets that allocated to them. it says in ur code that it’s using 0.000024mb. As far as i’m aware; hacker gets 2gb and free gets 500mb.

Profile icon
CodeLongAndPros

You'll need to use free | head -n 2 | tail -n 1 | awk '{print $2}' to get bytes free.

Profile icon
Coder100

Hello, yeah, it's probably /home/runner itself.

Profile icon
CarlyRaeJepsenS

@Coder100
How can I find the amount of RAM my repl is using?

Profile icon
Coder100
Profile icon
CarlyRaeJepsenS

@Coder100
Ah yes, I saw this SO thread too, but it tells me I have 27 GB of RAM. So...?

Profile icon
Coder100

@CarlyRaeJepsenS
so whats the problem?

Profile icon
CarlyRaeJepsenS

@Coder100
I suppose there isn't.

Profile icon
Coder100
Profile icon
Buhron

You know, Replit System is like 1 TB (1000 GB) because of Nix. If Nix was removed from your repl, you would have 1 TB of repl storage