Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-7755

Inconsistent behavior between platforms for memory-map failure

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • MMAPv1, Storage
    • None
    • Comparing Linux with Windows
    • Storage Execution
    • ALL

    Description

      On Windows, a failure on any call to MapViewOfFile() or MapViewOfFileEx() will result in a Fatal Assertion and server shutdown.

      On Linux, a failure on a call to mmap() from remapPrivateView() will result in an abort(), but a failure in map(), createReadOnlyMap() or createPrivateMap() is just logged, and the server does not shut down.

      We should probably follow the same rules on these two platforms.

      This test reported this issue 7114 times before the test finally failed:

      http://buildlogs.mongodb.org/Nightly%20Linux%20RHEL%2032-bit/builds/294/test/recent%20failures/mrShardedOutput.js

       m30001| Sat Nov 24 02:11:49.814 [conn3]   mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
       m30001| Sat Nov 24 02:11:49.814 [conn3] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
       m30001| Sat Nov 24 02:11:49.814 [conn3]   mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
       m30001| Sat Nov 24 02:11:49.814 [conn3] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
       m30001| Sat Nov 24 02:11:49.814 [conn3]   mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
       m30001| Sat Nov 24 02:11:49.814 [conn3] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
       m30001| Sat Nov 24 02:11:49.814 [conn3]   mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
       m30001| Sat Nov 24 02:11:49.814 [conn3] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
       m30001| Sat Nov 24 02:11:49.815 [conn3]   mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
       m30001| Sat Nov 24 02:11:49.815 [conn3] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
       m30001| Sat Nov 24 02:11:49.815 [conn3]   mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
       m30001| Sat Nov 24 02:11:49.815 [conn3] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
       m30001| Sat Nov 24 02:11:49.815 [conn3]   mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
       m30001| Sat Nov 24 02:11:49.815 [conn3] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
       m30001| Sat Nov 24 02:11:49.815 [conn3]   mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
       m30001| Sat Nov 24 02:11:49.815 [conn3] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
       m30001| Sat Nov 24 02:11:49.815 [conn7]   mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
       m30001| Sat Nov 24 02:11:49.815 [conn7] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
       m30001| Sat Nov 24 02:11:49.816 [conn3]   mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
       m30001| Sat Nov 24 02:11:49.816 [conn3] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
       m30001| Sat Nov 24 02:11:49.816 [conn3]   mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
       m30001| Sat Nov 24 02:11:49.816 [conn3] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64

      Attachments

        Activity

          People

            backlog-server-execution Backlog - Storage Execution Team
            tad Tad Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: