From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Stancek Date: Tue, 22 Oct 2019 08:39:59 -0400 (EDT) Subject: [LTP] [PATCH] thp02: simplify test to lower memory requirements In-Reply-To: <20191022113704.GA13757@rei> References: <651aa5d59504efe89ee8428afd95fe90a9bbea38.1571412608.git.jstancek@redhat.com> <20191022113704.GA13757@rei> Message-ID: <2016228785.8155247.1571747999778.JavaMail.zimbra@redhat.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it ----- Original Message ----- > Hi! > > Test is using 4 hugepages per allocation, and makes 4*3 allocations > > in total. This is problem for aarch64, where default huge page size > > is 512M. Systems are running into unexpected OOMs, because there > > is no check for available memory. > > > > Simplify test by: > > - dropping 3rd allocation, it's used only for pattern comparison > > - run test function in new child process, so we don't need to worry > > about cleaning up after mremap() and it lowers overall memory > > requirements > > - add a simple check if there's enough memory to setup() > > - drop .needs_root, there's no need for it > > Looks good, acked. Pushed.