Received: from mail-2.srv.cri.epita.fr (gate-2.cri.epita.net [163.5.55.20]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id C028A7819AC for <~alpine/users@lists.alpinelinux.org>; Wed, 2 Dec 2020 18:21:34 +0000 (UTC) Received: from [192.168.1.19] (lfbn-idf1-1-2039-252.w90-127.abo.wanadoo.fr [90.127.204.252]) (Authenticated sender: sevan) by mail-2.srv.cri.epita.fr (Postfix) with ESMTPSA id 5E77241794 for <~alpine/users@lists.alpinelinux.org>; Wed, 2 Dec 2020 19:21:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cri.epita.fr; s=cri; t=1606933292; bh=w/yHJaBFIFVY+R41BfEPm+4VgwV3F+RCYYMi3t3OoGQ=; h=To:From:Subject:Date:From; b=hsTGHxMthF0wala3GWARjC8lbOpbeXPy+bPYnWPqWCmz4SurHMZv6SdEnQYQN5DKF rprCLvU1a8mE2orRE2UwpNJcsDvli6qoG5nd5mvj3USAwImH6ebWhwclxtEhP9eTfl ySFebFZHMzJp3V+PMM/xSeJUvRuO7R8wq4Zvaevs= To: ~alpine/users@lists.alpinelinux.org From: Sevan Subject: [LVM] Strange disk perf on fresh install Message-ID: <03b0aa41-a5c2-7a96-b8d2-2b8f4c80c1e0@cri.epita.fr> Date: Wed, 2 Dec 2020 19:21:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Hello everyone, I recently installed Alpine on a dedicated server using LVM for root and swap partitions. But after some benchmarks, I noticed that the hard disk speed of my new Alpine install was noticeably slower then on other distro (Archinux and Debian in this case). I then ran more benchmarks using `fio`. Here is my methodology and the benchs results: # Benchmark commands: Read: fio --name=alpine-read --ioengine=posixaio --rw=read --bs=4k --numjobs=1 --size=4g --iodepth=1 --runtime=60 --time_based --end_fsync=1 Write: fio --name=alpine-write --ioengine=posixaio --rw=write --bs=4k --numjobs=1 --size=4g --iodepth=1 --runtime=60 --time_based --end_fsync=1 # Benchmark setups: ## Server: Hardware specs: - GPT on a BIOS only capable motherboard with a `lvmsys` Alpine install - Hardware raid1 - HP SmartArray p222 Alpine - LVM: READ: bw=154MiB/s (162MB/s) WRITE: bw=86.3MiB/s (90.5MB/s) Archlinux - LVM (Alpine LVM partitions mounted on archlinux liveCD): READ: bw=236MiB/s (247MB/s) WRITE: bw=126MiB/s (132MB/s) ## VM (VirtualBox): Hardware specs: - Basic `lvmsys` Alpine install on a laptop with a NVMe SSD Alpine - LVM: READ: bw=96.2MiB/s (101MB/s) WRITE: bw=93.5MiB/s (98.0MB/s) Archlinux - LVM (Alpine LVM partitions mounted on archlinux liveCD): READ: bw=354MiB/s (371MB/s) WRITE: bw=237MiB/s (248MB/s) As you can see, Alpine performances are quite bad, is this an expected behavior ? If it's not, where should I try to look for a fix ? Kernel config ? LVM using musl ? -- Sevan