From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from eddie.linux-mips.org ([148.251.95.138] helo=cvs.linux-mips.org) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1kV8XO-0002DU-Vz for ptxdist@pengutronix.de; Wed, 21 Oct 2020 09:27:59 +0200 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23992819AbgJUH1zz40JP (ORCPT ); Wed, 21 Oct 2020 09:27:55 +0200 Date: Wed, 21 Oct 2020 09:27:54 +0200 From: Ladislav Michl Message-ID: <20201021072754.GA96000@lenoch> References: <20201020060458.GA68883@lenoch> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] systemctl daemon-reload fails List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de On Tue, Oct 20, 2020 at 08:57:27AM -0400, Jon Ringle wrote: > On Tue, Oct 20, 2020 at 2:06 AM Ladislav Michl wrote: > > > > On Mon, Oct 19, 2020 at 02:32:49PM -0400, Jon Ringle wrote: > > > I recently updated to ptxdist-2020.10.0 for running on our device that > > > has 64MB or physical ram. > > > With systemd-246.6 that is installed,I'm finding that systemd > > > daemon-reload now fails: > > > > > > $ sudo systemctl daemon-reload > > > Failed to reload daemon: Refusing to reload, not enough space > > > available on /run/systemd. Currently, 10.6M are free, but a safety > > > buffer of 16.0M is enforced. > > > > > > Has anyone else encountered this issue? > > > What is the recommended way to handle this? I'm hesitant to increase > > > the size of /run in fstab because of the limited RAM I have available. > > > > I lowered RELOAD_DISK_SPACE_MIN with hope for the best. In my scenario, > > daemon-reload is almost never called - only in case technician is doing > > some tests on device and there is always watchdog to fix failed software. > > Yeah, I noticed that systemd hardcoded the value of > RELOAD_DISK_SPACE_MIN to 16MB. > What did you patch your value to be? 1MB, previously there was no such check and it was added to fix https://github.com/systemd/systemd/issues/5016 and those 16MB seems to be just a number big enough... > Our firmware update script calls `systemctl daemon-reload` after > installing an updated ipk package which then leads to failing to > restart our application service Btw, we are using rauc and casync to update firmware, so device gets rebooted once done - but casync is storage hungry as well, so data partition is sacrificed for update purposes and casync's TMP is set to point there; all logged data are downloaded and erased before firmware update begins. ladis > -Jon > > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de > To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de