From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: GC hints Date: Wed, 19 Dec 2018 14:49:09 +0100 Message-ID: <87h8f9y6cq.fsf_-_@gnu.org> References: <878t10xpam.fsf@ambrevar.xyz> <87wooj1fmx.fsf@gmail.com> <87efaqna9u.fsf@ambrevar.xyz> <87d0qana9e.fsf@ambrevar.xyz> <87k1kivmzt.fsf@ambrevar.xyz> 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]:49788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZcDp-0006Lw-5h for help-guix@gnu.org; Wed, 19 Dec 2018 08:49:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZcDn-0001Bv-Pv for help-guix@gnu.org; Wed, 19 Dec 2018 08:49:13 -0500 In-Reply-To: <87k1kivmzt.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Sun, 09 Dec 2018 14:38:30 +0100") 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: Pierre Neidhardt Cc: help-guix Hi! Pierre Neidhardt skribis: > (if profile > (display-hint (format #f (G_ "Consider deleting old profile > -generations and collecting garbage, along these lines: > +generations, deleting old Guix checkouts and collecting garbage, along t= hese > +lines: >=20=20 > @example > -guix package -p ~s --delete-generations=3D1m > -guix gc > -@end example\n") > - profile)) > +guix package --profile=3D~s --delete-generations=3D1m > +guix package --profile=3D~s --delete-generations=3D1m > +guix gc --free-space=3D5G > +@end example > + > +You might also want to delete old non-default profiles in > +/var/guix/gcroots/auto.") > + profile > + (string-append (config-directory #:ensur= e? #f) "/current"))) I agree that this would be more accurate, but isn=E2=80=99t there also a ri= sk with making hints too long? I=E2=80=99m split between the idea of providing concise hints that can be pasted and get things done, and the idea or not trying to be a substitute for the manual. Actually, I was also wondering whether we should provide a configurable mechanism that would, by default, automatically delete old GC roots and maybe even run the GC automatically when needed=E2=80=94similar to what Git does. Thoughts? Ludo=E2=80=99.