Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4029816
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:23:34+00:00 2026-05-20T11:23:34+00:00

Using a Linux machine, how many files can one ‘mmap’ using python (what is

  • 0

Using a Linux machine, how many files can one ‘mmap’ using python (what is the limit)?
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:23:35+00:00Added an answer on May 20, 2026 at 11:23 am

    There’s multiple limits in play. The first is the system-wide open files limit, /proc/sys/fs/nr_open. This is typically in the million-range.

    This limit may continue to be counted against processes that open the file, set up the mapping, then close the file again.

    The second is the per-process getrlimit(2) RLIMIT_NOFILE per-process number of open files. This limit is typically in the 1024-range.

    This limit appears to be on the highest file descriptor that will be allocated to the process, so it probably won’t continue to be counted against processes that open the file, set up the mapping, then close the file again.

    The third is the amount of address space available to the process (getrlimit(2) RLIMIT_AS and architecture-dependent (2, 3, or maybe 4 gigabytes (with the 4:4 address space patch) on 32-bit, or many many gigabytes on 64-bit). 3 gigabytes is typical on x86, and due to address space layout issues, you’ll have probably 2.5 gigs available for mmap.

    Clever use of fork(2) could let you set up one process per mapped file, and have gigabytes upon gigabytes mapped simultaneously even on 32-bit processors, but the getrlimit(2) RLIMIT_NPROC number of processes per user limitation may limit you to a maximum number of open processes, and thus files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to start learning HTML and AJAX using a Linux distribution. Can anyone
I recently started using Linux as my primary OS. What are the tools that
I would like to develop Adobe Flex applications using Linux and a free environment.
I'm currently using a linux server, we run a couple of web sites of
I'm fine working on Linux using gcc as my C compiler but would like
What is the easiest way using common linux tools to check if a bunch
I'm writing a Java application that runs on Linux (using Sun's JDK). It keeps
I've got an unusual situation: I'm using a Linux system in an embedded situation
Does anyone know how to access ALSA (low-level audio API) in Linux using Mono?
I have tried to find how to create DLL-s on linux using google, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.