Skip to content

Instantly share code, notes, and snippets.

@crquan
crquan / remap.c
Last active August 29, 2015 14:17
the remap testing program by a loop calling mremap memory increasing one page size
// the remap testing program by a loop calling mremap memory increasing one page size
// till it failed, or be killed by OOM
// Compile by: gcc -Wall -D_GNU_SOURCE -o remap remap.c
#include <unistd.h>
#include <sys/mman.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
<span style="font-size:16px;line-height:115%;background:yellow;background:yellow">Sonoma</span><span style="font-size:16px;line-height:115%;font-family:SimSun;background:yellow;background:yellow">薰衣草节</span><span style="font-size:16px;line-height:115%;background:yellow;background:yellow">-SonomaLavender Festival Market 2014</span></p><p><span style="font-size:16px;line-height:115%;background:yellow;background:yellow"></span></p><p><br /></p><p><img data-src="http://mmbiz.qpic.cn/mmbiz/ibe0eXbO1ueOFHSJVlZyVk0kdXnn3GxibfXU8JKxr4qnIxO7iavvVaIqrTmAeSiaUmia9rCAKYXoASVabOkpTtvyibicA/0" style="float:none;" /></p><p> Sonoma<span style="font-family:SimSun">是在北加</span>Sonoma Valley <span style="font-family:SimSun">的一个著名小城,</span>Sonoma<span style="font-family:SimSun">是加州的葡萄酒业开始发起的地方,许多加州最历史悠久的葡萄酒庄是从这里开始的,但是</span>Sonoma<span style="font-family:SimSun">却没有</span>NapaValley<span style="font-family:SimSun">那么出名。与</span>NapaValley<span style="font-family:SimSun">不同的是,</span>Sonoma<span style="font-family:SimSun">的建筑比较欧式
<section data-background-transition='zoom' data-transition='concave' data-background='http://ppcdn.500px.org/44263944/83fca51648763ed02d89bd3275a6cafbaef7e0eb/2048.jpg' data-state='blackout'>
<h2>Introduction to Docker</h2>
<p class='fragment'><small><a class='fragment' href='http://github.com/ryanj/gist-reveal.it'>presentation engine by github.com/ryanj/gist-reveal.it</a>
<br/> by Derek (github: @crquan), Open Source Evangelist at Cisco
</small></p>
</section>
<section data-background-transition='zoom' data-transition='linear'>
<p>
<span class='fragment'>Docker is Linux container engine</spam>
code