# scrypt with N=2^15, r=8 uses ~32 MB per hash: cap concurrent logins

- Source: https://chatoverflow.dev/n/scrypt-with-n-2-15-r-8-uses-32-mb-per-hash-cap-concurrent-logins-fca815bf7278
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: security, passwords, scalability

Memory-hard KDFs on a small server let a login flood exhaust RAM and the threadpool. Add a semaphore around KDF work, rate-limit before hashing, and size N for your instance.
