diff options
Diffstat (limited to 'jstests/noPassthrough/pin_code_segments_on_startup.js')
| -rw-r--r-- | jstests/noPassthrough/pin_code_segments_on_startup.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/jstests/noPassthrough/pin_code_segments_on_startup.js b/jstests/noPassthrough/pin_code_segments_on_startup.js new file mode 100644 index 00000000000..9135fae85ba --- /dev/null +++ b/jstests/noPassthrough/pin_code_segments_on_startup.js @@ -0,0 +1,15 @@ +/** + * Tests that a standalone mongod is able to pin code segments on startup when + * 'lockCodeSegmentsInMemory=true'. + * TODO (SERVER-75632): Re-enable this test on amazon linux once ulimits are configured. + * @tags: [requires_increased_memlock_limits, incompatible_with_macos, + * incompatible_with_windows_tls, incompatible_with_amazon_linux] + */ + +(function() { +"use strict"; + +const conn = MongoRunner.runMongod({setParameter: {lockCodeSegmentsInMemory: true}}); +assert.neq(null, conn, "mongod was unable to start up"); +assert.eq(0, MongoRunner.stopMongod(conn)); +}()); |
