> madvise can be replaced with munmap and the same behavior occurs.Oh sorry my bad! I investigated again and found 2 problem in your test program. 1. text segment isn't locked. if strong memory pressure happned, kernel may drop program text region. then your test program suddenly slow down. please use mlockall(MCL_CURRENT) before large buffer allocation. 2. repeat open/close to /proc/meminfo. in the fact, open(2) system call use a bit memory. if call open(2) in strong memory pressure, doesn't return until memory freed enough. thus, it cause slow down your program sometimes. attached changed test program :) it works well on my test environment. your proposal is interesting. but I hope try to my attached test program at first.
| monstr | [PATCH 27/56] microblaze_v2: support for a.out |
| Andrew Morton | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| mdew . | Re: [patch] CFS scheduler, v4 |
| Gabriel C | Re: 2.6.21-mm1 |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Willy Tarreau | Re: [PATCH] tcp: splice as many packets as possible at once |
| Linus Torvalds | Re: [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
