Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2107.outbound.protection.outlook.com [40.107.243.107]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 47A5B780DCF for <~alpine/users@lists.alpinelinux.org>; Sat, 21 May 2022 03:09:16 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YquwTzCshP49mnma+F8zdQ062N8b0Cqo6kRtiPtHMehjDPtuh3K+pskoXX2AAl0z13rq/lIZWAjAvofQBM/XR6n4TQUxyw1iNIGOmBb3aBelKL7frf3PHOfdMDkw+Hqpbc96yvlR8ugv+0geO2MweVQJNedjaXCL/x+XGmX81rXbUa/bta+GwnmW4ep6ezmcJOtj+rAzmoXK+k9m1ErmWgDZlUBIPjv4w+uDr7eS9pWsKQuoZehYp0/19+y1iwZcgC1wMpVt2xRo75vZJjcxr1QWKGVhVDKESIZ9ru7LDq2wFgdslWieSTsosSR6UQgJZmsS/VAioLsw2/Rq9kOV8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5RBMXuI2ETpJClWTUmYOH7RPCHeDFG8gZhFjirlIfkM=; b=PgJo1aI1GKkjKCLm+a5b4h8MexQcvCGTX5x8QGXldhzuOkKpLh59Hlvqlc+kui6KswkqLyJUQibeVBGkuCWQe6orZ8un9ZBtPFIWDI49fBibe1+JDfkh4JmKIzgBd8HbKImFJpt17f668Ym5TmOKPXwsX0JWuaztm0oOBvCSWOI654QRGz9Ed2MvQ/buGNDi0JUbpY1dyNlUc3lqdeWpAr1oLSJby71e/QPGETNf2frvPzPluu96SWy7uf7B60xbgo4BQ9M0tj85Vjv6fur5BnzDsYnllrY+b0se1NNMfhwj5RFHfOYADWOVH1iv+vRkiNTwnonUZdWw3gX9ImRB5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=scadaware.com; dmarc=pass action=none header.from=scadaware.com; dkim=pass header.d=scadaware.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scadaware.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5RBMXuI2ETpJClWTUmYOH7RPCHeDFG8gZhFjirlIfkM=; b=c6iCuoejqBvxwsfxv/McLOYR/Ok+XMNE+5tdIYffzIdvpsUtdwS4GvlU+Q7JLxri3L51d2QwMVHEq0b2GLj5li1HIseVGEnNNgY4Vj91QS66i8wat6Kaj6b0wuMBe0AQS2JGk+ioIP7KfdRDr2gqUrK/ZfhEJOgb4iSiE7C3m+haE6Dsb+iNFO5L4yo+1jU4UAFjlqMdp3bA1d7jRZY58RSeytNMZl4DDf26AxDtnKnY5+6hFEJcRCaVUAKjErah3vl/lQp9PAFfOLPp9cm60PShH+sLMz0/Wt0tejxRR6k3XKvKXDeNGEI7T5LyCZj8M40ODk9p/a8D7cv5xH9jnA== Received: from MW5PR22MB3060.namprd22.prod.outlook.com (2603:10b6:303:1a0::12) by MN2PR22MB1775.namprd22.prod.outlook.com (2603:10b6:208:206::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.17; Sat, 21 May 2022 03:09:11 +0000 Received: from MW5PR22MB3060.namprd22.prod.outlook.com ([fe80::9cda:7f0b:8e0:c1ac]) by MW5PR22MB3060.namprd22.prod.outlook.com ([fe80::9cda:7f0b:8e0:c1ac%6]) with mapi id 15.20.5273.015; Sat, 21 May 2022 03:09:11 +0000 From: Kevin Garman To: Thomas Reid CC: "~alpine/users@lists.alpinelinux.org" <~alpine/users@lists.alpinelinux.org> Subject: Re: Diskless Memory Split Thread-Topic: Diskless Memory Split Thread-Index: AQHYa3XhQbTUixHT5Uy2ikQUu6jaHa0mPUCAgAJrXXA= Date: Sat, 21 May 2022 03:09:10 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=scadaware.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ef8a68d4-040d-470e-12ec-08da3ad74708 x-ms-traffictypediagnostic: MN2PR22MB1775:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OS8HErRPVk+G06urQKS75HsZjTu7gvYmyiI0ScIeP+ka62Uh2DWSaNiwzLuECQx/LfgOszEJFnH1R/zIwTDAPUmLyQbSl5hpkQSG4LdV3b2yQxPEbFg0Im9vf39w5BUSokEfVaUywXAjLOrpp+VQZ+H5hxuF0fYFfW06oBVvT3YAWT8cHcDRzXchWKV/g8XchgM609avKUpxTgzhdZtHhUQDxUN3QQrBiW1tw8k3LM7AOFPcGIZbeIH8ThvGloUXTVmv8e2ODRwG1vy5kwKV/edT+Vv9pCgGeaoYCcK64SlK4/nMdTnCAo+XWDwa94VIou7P1qcuh3BZlzQHvPPdzeCZ9AWpwzJ+TzM1TyKg7pbIo3NX4dz/qT+jFxiJGjFgCJFfq2KCO8FGTCjvmAmUELJJ2fLIHWpzS71HIoDxses59EX68BiT76CS2Pw1sjhJgxkjXvyJmoijMO6DsuA5j2Nr1FHNcJcGoLTTQtmj5ldrEVYC+ClvVDRUa+faxawR52LgLZZx2SPCYfTfTW+Z5xiU8pmtNTaBhIvsAa2/eLaKrBRSg65WO5glKBBFZpRGM88yvMaesfogsqgjL1BeaB6198nUqi+HRFEwQxWL6CI4rpq0ESbja+l8UjAl6dHIghMfEUbTCz/jIH0YhwUpvmX9LFpFrYuPfMRypH58uFC4IepR8kb0X8ZKfbSsz87Wq3lhpOtXHHoDsnz23frDgw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW5PR22MB3060.namprd22.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(136003)(396003)(366004)(376002)(39830400003)(346002)(53546011)(6506007)(52536014)(122000001)(2906002)(7696005)(5660300002)(508600001)(8936002)(33656002)(66946007)(66476007)(66556008)(71200400001)(186003)(86362001)(9686003)(26005)(55016003)(3480700007)(38100700002)(38070700005)(7116003)(41300700001)(6916009)(8676002)(19627405001)(4326008)(66446008)(64756008)(91956017)(76116006)(316002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?FpaFHFLCOgABw7vdm9Vciqdijlfmx/Pp6sfTmCKY+c2OlAAeqIOY03Uh7vvI?= =?us-ascii?Q?aO9h5vPdICcBO8gJm0d22xw0KkeR5BHgl+diFolhKDW5Kfb8ye4wx1AVo64V?= =?us-ascii?Q?BetR+vP6JRvuWde33XC5xgQZRF0J95O0vS+0kAJvVsnx1LJglCRpERrllgV5?= =?us-ascii?Q?58/sRHDOq/xnSg1zsHTcmdtHc30XKX6jUTWqFaTaBsJq57w3zuhMIbM4k+Me?= =?us-ascii?Q?pkuhO6fML4WsoagyGEza448ad1s+Ii/Pkj70pvbCGROlqNnxi7DDOLXQnUYt?= =?us-ascii?Q?47JoLtq4gnrlmkPAi8mkYRIzoLdKsfJ32nL1RfE2ONxpAHQSAwXTJQ4IJq6z?= =?us-ascii?Q?SgYfwW87cRIeLbeIWA3iFUk10vPYI8ASzHJPTWr7JmOzy/4ME+CgFTCJPTH4?= =?us-ascii?Q?SXX5Gl5ns6eK2PWr2DmXIRNHoL8bNnrUaJ3aZly/Ss1vw9EKKiGO/hsBT5Ui?= =?us-ascii?Q?cJcL6F2wEEXHhrXuGXQ5xFBf8fCKezVGYjbTDYbmSxHkZx5DjPD6N004E17d?= =?us-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xwpaK+45M17RHwmW2?= =?us-ascii?Q?375n0Z+fRA+ZDjRDhhoSg0/+Za7dkrKvY09RomfdC5vxBG+k8hzWaiZpmmCg?= =?us-ascii?Q?JyL0CBFZeIoHPhiPonrLsf2AtY8mHTflyZkYWE9WeYksc1cI+YgMp+VH8i0U?= =?us-ascii?Q?CtpBB1UWx0VTS5xUZu5e0vUb4JeLIW/sA4QRKL+0L0SSSgbrfWnUO7lY8BPL?= =?us-ascii?Q?74gX+LcjMvMLJSv+8phWGz6L8PtUIVx5u85a49tZ+0vuzoW3c8zfU4fV+zGL?= =?us-ascii?Q?GbKaK63PacKhyAPU9Ljimhnpfr7Hxw4t+lbmQIKL1dJ05Qd3GqTnIYO0b2cF?= =?us-ascii?Q?goHVNEWn9Q=3D=3D?= Content-Type: multipart/alternative; boundary="_000_MW5PR22MB306029739F3BBF654899204CD6D29MW5PR22MB3060namp_" MIME-Version: 1.0 X-OriginatorOrg: scadaware.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW5PR22MB3060.namprd22.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ef8a68d4-040d-470e-12ec-08da3ad74708 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 May 2022 03:09:11.0125 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be8c23c3-1d1a-4a2e-a2b5-5e42d5ccbec6 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 8i+mZ/CgcuYFpR07YJZwUl/fZvXmwZF6Sz8Nr8d2m9y3eg4eR1n+C/D22xM7tG+xAnD/ZS8JoVh4t8rbyXUDHQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR22MB1775 --_000_MW5PR22MB306029739F3BBF654899204CD6D29MW5PR22MB3060namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Perfect, thanks Tom! You definitely pointed me in the right direction. An= d since I'm on a raspberry pi in this particular instance, all I needed to = do was add root_size=3D300M to my cmdline.txt file. ________________________________ From: Thomas Reid Sent: Thursday, May 19, 2022 09:09 To: Kevin Garman Subject: Re: Diskless Memory Split >In a diskless system, 50% (i think?) of system ram is used for the root fi= le system.....is there a way to configure that split? ....perhaps use 60% f= or the root file system? Or, if I have a lot of ram, maybe only use 10% for= the root file system? Have a look at the initramfs-init. You can set the rootflags KOPT to set the rootfs size size=3Dwhatever% You can also look at the size of the shm tmpfs. Hope this starts to point you in the right direction. Tom On May 19, 2022 at 12:46:11, Kevin Garman (garman@scadaware.com) wrote: In a diskless system, 50% (i think?) of system ram is used for the root fil= e system.....is there a way to configure that split? ....perhaps use 60% f= or the root file system? Or, if I have a lot of ram, maybe only use 10% fo= r the root file system? --_000_MW5PR22MB306029739F3BBF654899204CD6D29MW5PR22MB3060namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Perfect, thanks Tom!  You definitely pointed me in the right = ;direction.  And since I'm on a raspberry pi in this particular instan= ce, all I needed to do was add root_size=3D300M to my cmdline.txt file= .



From: Thomas Reid <tom.d= .reid@gmail.com>
Sent: Thursday, May 19, 2022 09:09
To: Kevin Garman <Garman@scadaware.com>
Subject: Re: Diskless Memory Split
 
>In a diskless system, 50% (i think?) of system ram is used for the= root file system.....is there a way to configure that split? ....perhaps u= se 60% for the root file system? Or, if I have a lot of ram, maybe only use= 10% for the root file system?

Have a look at the initramfs-init.
You can set the rootflags KOPT to set the rootfs size size=3Dwhatever%
You can also look at the size of the shm tmpfs.

Hope this starts to point you in the right direction.

Tom



On May 19, 2022 at 12:46:11, Kevin Garman (garman@scadaware.com) wrote:

In a diskless system, 50% (i think?) of system ram is used for the root fil= e system.....is there a way to configure that split?  ....perhaps use = 60% for the root file system?  Or, if I have a lot of ram, maybe only = use 10% for the root file system?
--_000_MW5PR22MB306029739F3BBF654899204CD6D29MW5PR22MB3060namp_--