Question library
Questions from real interviews. Drill any of them by voice in a couple of minutes, with an interviewer, a score and feedback.
How does memory management work in Python? How are objects that are no longer needed removed?JuniorOver a day of running, a Python worker grows in memory from two hundred megabytes to three gigabytes. How would you track down the leak?Mid-levelВаш процесс на сервере с 16 гигабайтами памяти показывает в top VIRT 40 гигабайт, RES 2 гигабайта, а потом его внезапно убивает OOM killer. Объясните, как устроена память процесса в Linux, что означают эти цифры и как процесс мог дойти до OOM.Mid-levelHow does memory management work in CPython? And how would you track down a memory leak in a long-running Python process?SeniorYour Django service runs under gunicorn, and on every server the workers eat up all the memory. How would you design the worker configuration, and what would you do about memory consumption?Senior