Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package/AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ Chronological list of authors
- Francesco Siciliani
- Akshit Boora
- Sumit Saraswat

- Erik Fransson

External code
-------------
Expand Down
8 changes: 7 additions & 1 deletion package/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@ The rules for this file:


-------------------------------------------------------------------------------
??/??/?? IAlibay, sumitsaraswat362
??/??/?? IAlibay, sumitsaraswat362, erikfransson

* 2.12.0

Fixes
* The NCDF reader now releases the pages of the memory map once a frame has
been read into the Timestep. Reading a netCDF trajectory with `mmap=True`
(the default for a file name) no longer grows the resident memory of the
process towards the size of the whole trajectory file. Requires a platform
that provides `MADV_DONTNEED`, i.e. not Windows (Discussion #4792,
PR #5463).
Comment on lines +26 to +27

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
that provides `MADV_DONTNEED`, i.e. not Windows (Discussion #4792,
PR #5463).
that provides `MADV_DONTNEED`, i.e. not Windows (#5541, PR #5463)

I raised a proper issue from the discussion #5541


Enhancements
* InterRDF and InterRDF_s now expose computed average box volume and densities
Expand Down
5 changes: 5 additions & 0 deletions package/MDAnalysis/coordinates/TRJ.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
import warnings
import errno
import logging
import mmap
from math import isclose

import MDAnalysis
Expand Down Expand Up @@ -675,6 +676,10 @@ def _read_frame(self, frame):
self.convert_pos_from_native(ts.dimensions[:3])
ts.frame = frame # frame labels are 0-based
self._current_frame = frame
# the frame is now copied into ts, so its pages can be dropped again
mm = getattr(self.trjfile, "_mm", None)
if mm is not None and hasattr(mmap, "MADV_DONTNEED"):
mm.madvise(mmap.MADV_DONTNEED)
return ts

def _reopen(self):
Expand Down
Loading