Re: oops when swapping on latest kernel git 3.15-rc5

2014-05-19 Thread Michal Hocko
On Sun 18-05-14 12:15:48, Hugh Dickins wrote: > On Sun, 18 May 2014, Branimir Maksimovic wrote: > > > Ia hev discovered this accidentaly when tried to see how oom killer > > works. Program is this: > > > > #include > > #include > > #include > > #include > > > > int counter=0; > > int main()

Re: oops when swapping on latest kernel git 3.15-rc5

2014-05-18 Thread Hugh Dickins
On Sun, 18 May 2014, Branimir Maksimovic wrote: > Ia hev discovered this accidentaly when tried to see how oom killer > works. Program is this: > > #include > #include > #include > #include > > int counter=0; > int main() > try > { > for(;;++counter) > { > char* p = new char[1024*102

oops when swapping on latest kernel git 3.15-rc5

2014-05-18 Thread Branimir Maksimovic
Ia hev discovered this accidentaly when tried to see how oom killer works. Program is this: #include #include #include #include int counter=0; int main() try { for(;;++counter) { char* p = new char[1024*1024]; memset(p,1,1024*1024); std::cout< 24000)sleep(100); } }catch(co