Opened 12 years ago

Closed 8 years ago

#20 closed enhancement (invalid)

Add madvise() support for mmap

Reported by: Lewis Rosenthal Owned by:
Priority: minor Milestone:
Component: mmap Version:
Severity: highest Keywords: mmap madvise logrotate
Cc: Yuri Dario

Description

We need a robust log rotation app for eCS. I suggested porting logrotate (https://fedorahosted.org/logrotate/) which seems to be something fairly common across several *nix distros.

Paul had a look and advises that our current mmap (20111102, on my system, which seems to be the latest available) does not support madvise(), and is apparently a requirement for building logrotate.

(Yuri, I am cc'ing you here, as I believe the current mmap is one of yours.)

N.B.: mmap is not a selectable component in the dropdown list in this tracker.

Change History (5)

comment:1 by Yuri Dario, 12 years ago

I think madvise() could be completely ignored, since we cannot tell OS/2 kernel how to handle memory access.

comment:2 by psmedley, 12 years ago

That being the case, would it be worth adding a stub madvise to your mmap to avoid having to change the source code?

comment:3 by Silvan Scherrer, 10 years ago

Component: *nonemmap

comment:4 by Silvan Scherrer, 8 years ago

Severity: highest

might go inline with #32

comment:5 by dmik, 8 years ago

Resolution: invalid
Status: newclosed

There is ​https://github.com/bitwiseworks/libcx/issues/11 where further MMAP development goes on. I will give a link to this ticket and close it.

Note: See TracTickets for help on using tickets.