From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f71.google.com (mail-pg0-f71.google.com [74.125.83.71]) by kanga.kvack.org (Postfix) with ESMTP id 4EDDD6B0030 for ; Tue, 27 Mar 2018 05:19:09 -0400 (EDT) Received: by mail-pg0-f71.google.com with SMTP id q65so10891733pga.15 for ; Tue, 27 Mar 2018 02:19:09 -0700 (PDT) Received: from baidu.com ([220.181.50.185]) by mx.google.com with ESMTP id r6-v6si900062pls.51.2018.03.27.02.19.08 for ; Tue, 27 Mar 2018 02:19:08 -0700 (PDT) From: "Li,Rongqing" Subject: Too easy OOM Date: Tue, 27 Mar 2018 09:19:02 +0000 Message-ID: <2AD939572F25A448A3AE3CAEA61328C23750D4E0@BC-MAIL-M28.internal.baidu.com> Content-Language: zh-CN Content-Type: multipart/alternative; boundary="_000_2AD939572F25A448A3AE3CAEA61328C23750D4E0BCMAILM28intern_" MIME-Version: 1.0 Sender: owner-linux-mm@kvack.org List-ID: To: "linux-mm@kvack.org" Cc: "linux-kernel@vger.kernel.org" --_000_2AD939572F25A448A3AE3CAEA61328C23750D4E0BCMAILM28intern_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Current kernel version is too easy to trigger OOM, is it normal? # echo $$ > /cgroup/test/tasks # echo 200000000 >/cgroup/test/memory.limit_in_bytes # dd if=3Daaa of=3Dbbb bs=3D1k count=3D3886080 Killed --_000_2AD939572F25A448A3AE3CAEA61328C23750D4E0BCMAILM28intern_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Current kernel version is too e= asy to trigger OOM, is it normal?

 

# echo $$ > /cgroup/test/tas= ks

# echo 200000000 >/cgroup/te= st/memory.limit_in_bytes

# dd if=3Daaa  of=3Dbbb&nb= sp; bs=3D1k count=3D3886080

Killed

--_000_2AD939572F25A448A3AE3CAEA61328C23750D4E0BCMAILM28intern_--