alexbers / mtprotoproxy

Async MTProto proxy for Telegram
MIT License
1.58k stars 346 forks source link

RAM #253

Closed xcgu closed 2 years ago

xcgu commented 3 years ago

Hi

TO_CLT_BUFSIZE = 262144 TO_TG_BUFSIZE = 262144

what is good number for 8 GB of RAM? and how to make proxy use all CPU cores?

erfantkerfan commented 3 years ago

to answer to your second question this repo does not implement multi-core functionality so you have to manually run multiple instances

alexbers commented 3 years ago

The buffer sizes are good for 8 gb, but it depends on number of clients and on how far are they

xcgu commented 3 years ago

to answer to your second question this repo does not implement multi-core functionality so you have to manually run multiple instances

as I understand you mean for a 4 core CPU I should run this repo 4 times?

xcgu commented 3 years ago

The buffer sizes are good for 8 gb, but it depends on number of clients and on how far are they

I want to work with high number of users like 30K or more

erfantkerfan commented 3 years ago

to answer to your second question this repo does not implement multi-core functionality so you have to manually run multiple instances

as I understand you mean for a 4 core CPU I should run this repo 4 times?

correct but I dont know about serving that many users but you will find some help in older issues like running some users in diffrent ports and running separate repos for them