From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Performance issues with /gnu/store in virtual machines Date: Tue, 22 Aug 2017 16:33:12 +0200 Message-ID: <87ziar3c5z.fsf@gnu.org> References: <20170817210547.3fafde57@cbaines.net> <87shgj7vz4.fsf@gnu.org> <87o9r77okx.fsf@member.fsf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkAF8-0007np-0l for help-guix@gnu.org; Tue, 22 Aug 2017 10:33:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkAF2-0003m7-3J for help-guix@gnu.org; Tue, 22 Aug 2017 10:33:22 -0400 In-Reply-To: <87o9r77okx.fsf@member.fsf.org> (=?utf-8?B?IuWui+aWh+atpiIn?= =?utf-8?B?cw==?= message of "Tue, 22 Aug 2017 20:51:26 +0800") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: =?utf-8?B?5a6L5paH5q2m?= Cc: help-guix@gnu.org iyzsong@member.fsf.org (=E5=AE=8B=E6=96=87=E6=AD=A6) skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> Hi Chris, >> >> Christopher Baines skribis: >> >>> 1.13 0.000019 0 3853 openat >> >> [...] >> >>> 13.56 0.193014 50 3853 openat >> >> So openat(2) is 4 orders of magnitude slower in the VM, which is a >> problem. >> >> I guess a large part of that is due to the fact that VM created with >> =E2=80=98guix system vm=E2=80=99 use unionfs as their root file system, = which is a FUSE >> thing (see the =E2=80=9Cvolatile=E2=80=9D options in (gnu system vm), (g= nu system >> linux-initrd), and (gnu build linux-boot).) I=E2=80=99m not sure how we= could >> avoid it. > > We might switch to the linux kernel's bultin overlayfs, which should be > faster. > > https://wiki.archlinux.org/index.php/Overlay_filesystem Good point, we should probably do that. Ludo=E2=80=99.