[LU-5281] Memory leak when userspace code uses mmap on lustre files Created: 01/Jul/14 Updated: 31/Jul/14 Resolved: 01/Jul/14 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.5.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Andrew Prout | Assignee: | WC Triage |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Kernel version: 3.4.93 (also 3.2.58) |
||
| Severity: | 3 |
| Rank (Obsolete): | 14741 |
| Description |
|
We're seeing kernel a memory leak when a userspace process uses mmap'd files on lustre. It looks like memory is leaked for each unique file that is mmap'd. The code does not need to run as root. The same code on local disk does not cause a leak. The leak will eventually consume all system memory and take the machine down. To reproduce the bug, compile the below code and run something similar to: find /lustre/ -type f -print0 | xargs -0 -I{} ./mmap_bug "{}" Kernel version: 3.4.93 (also 3.2.58) #include <sys/types.h> int main(int argc, char **argv) { return 0; |
| Comments |
| Comment by Jinshan Xiong (Inactive) [ 01/Jul/14 ] |
|
This should be a reproduction of |
| Comment by Andrew Prout [ 31/Jul/14 ] |
|
The |