Presentation: Understanding Python Memory at Instagram

Track: Performance Mythbusting

Location: Bayview AB

Duration: 4:10pm - 5:00pm

Day of week: Monday

Level: Intermediate - Advanced

Persona: Architect, Backend Developer, Developer, DevOps Engineer, General Software, Technical Engineering Manager

Share this on:


Instagram server is one of the biggest Python deployments in the world to support more than 700M active users. At Instagram, the computing parallelism is based on multi-processing instead of threading. Memory utilization becomes critical in such model, i.e., with less memory per process, we are able to improve the parallelism hence overall capacity. In this talk, we will start with how Python memory profiling is done at Instagram, what useful insights we got from memory profiling data, and how such insights turned into efficiency wins for Instagram servers. We are also going to share our learnings from tuning and improving Python memory garbage collection.

Speaker: Min Ni

Engineering Manager @Instagram

Min Ni is currently an engineering manager at Instagram, his team mainly focuses on Instagram server performance. Before he joined Instagram, he worked at Facebook infra team for 4 years. Min Ni got his PhD degree on computer engineering from Northwestern University in the beautiful Chicago area. His interests are in the area of high performance computing and large scale distributed system. During his spare time, Min Ni enjoys traveling and book reading.

Find Min Ni at

Similar Talks

Software Engineer on the Build Infrastructure team @TravisCI
Chief Language Designer of C# & Contributor to TypeScript, Visual Basic, Roslyn, LINQ
Principal Software Engineer @Microsoft focused on High-Performance .NET
Director of Vulnerability Research @Endgame
Software Engineer & Core Contributor to Go-lang
Software Engineer Developing Kotlin @JetBrains
Software Engineer & Rust Contributor



  • Architectures You've Always Wondered About

    Architectural practices from the world's most well-known properties, featuring startups, massive scale, evolving architectures, and software tools used by nearly all of us.

  • Going Serverless

    Learn about the state of Serverless & how to successfully leverage it! Lessons learned in the track hit on security, scalability, IoT, and offer warnings to watch out for.

  • Microservices: Patterns and Practices

    Stories of success and failure building modern Microservices, including event sourcing, reactive, decomposition, & more.

  • DevOps: You Build It, You Run It

    Pushing DevOps beyond adoption into cultural change. Hear about designing resilience, managing alerting, CI/CD lessons, & security. Features lessons from open source, Linkedin, Netflix, Financial Times, & more. 

  • The Art of Chaos Engineering

    Failure is going to happen - Are you ready? Chaos engineering is an emerging discipline - What is the state of the art?

  • The Whole Engineer

    Success as an engineer is more than writing code. Hear inward looking thoughts on inclusion, attitude, leadership, remote working, and not becoming the brilliant jerk.

  • Evolving Java

    Java continues to evolve & change. Track covers Spring 5, async, Kotlin, serverless, the 6-month cadence plans, & AI/ML use cases.

  • Security: Attacking and Defending

    Offense and defensive security evolution that application developers should know about including SGX Enclaves, effects of AI, software exploitation techniques, & crowd defense

  • The Practice & Frontiers of AI

    Learn about machine learning in practice and on the horizon. Learn about ML at Quora, Uber's Michelangelo, ML workflow with Netflix Meson and topics on Bots, Conversational interfaces, automation, and deployment practices in the space.

  • 21st Century Languages

    Compile to Native, Microservices, Machine learning... tailor-made languages solving modern challenges, featuring use cases around Go, Rust, C#, and Elm.

  • Modern CS in the Real World

    Applied trends in Computer Science that are likely to affect Software Engineers today. Topics include category theory, crypto, CRDT's, logic-based automated reasoning, and more.

  • Stream Processing In The Modern Age

    Compelling applications of stream processing using Flink, Beam, Spark, Strymon & recent advances in the field, including Custom Windowing, Stateful Streaming, SQL over Streams.  

Conference for Professional Software Developers