public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH pve-installer; pve-docs; pmg-docs; proxmox-backup/docs 0/4] Update min RAM and min disk size for pve
@ 2023-07-10 13:49 Noel Ullreich
  2023-07-10 13:49 ` [pve-devel] [PATCH pve-installer 1/1] raise the minimum ram requirements to 2 GiB Noel Ullreich
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Noel Ullreich @ 2023-07-10 13:49 UTC (permalink / raw)
  To: pve-devel

Note that this patch series needs the patch
`tui: don't abort install if min ram requirement is not met`
(https://lists.proxmox.com/pipermail/pve-devel/2023-July/058057.html) to
apply.

This patch series does two things:
1) It raises the minimum usable RAM the installer checks for from 1 GiB to 2 GiB.

Up until now the installer checked whether the system (pve, pmg and pbs) had at
least 1 GiB of usable RAM or else it would display a warning. However,
the pmg and pbs docs specify a minimum of 2 GiB of usable RAM. Off-list,
Thomas recommended having a min of 2 GiB for all products:

"We could just update the docs to use 2 GiB as minimum as:
- for PVE one normally wants more RAM anyway, for running guests and
   all that
- for PBS it just makes sense to have a good amount available for page
   cache
   or ZFS ARC
- for PMG the clamav service alone eats almost a GiB, so 2 GiB aren't
   that
   unrealistic there either."

2) It updates the docs to specify the minimum disk size for a pve install.

As of now, the pve docs do not specify the minimum disk space needed for
a pve install. Extrapolating from the Debian min requirements 
(https://www.debian.org/releases/bookworm/amd64/ch03s04.en.html) the
docs recommend a minimum disk size of 16 GiB. Leaving all the default values
in the installer (i.e. not changing any lvm-thin/swap sizes), this gives
a root directory of 6.8 GiB.

Noel Ullreich (1):
  raise the minimum ram requirements to 2 GiB

 proxinstall                       | 4 ++--
 proxmox-tui-installer/src/main.rs | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

Noel Ullreich (1):
  raise min ram requirements to 2 GiB and specify min disk space

 pve-system-requirements.adoc | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Noel Ullreich (1):
  Consistency of GB and GiB pmg

 pmg-planning-deployment.adoc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Noel Ullreich (1):
  Consistency of GB and GiB pbs

 docs/system-requirements.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-- 
2.39.2





^ permalink raw reply	[flat|nested] 8+ messages in thread

* [pve-devel] [PATCH pve-installer 1/1] raise the minimum ram requirements to 2 GiB
  2023-07-10 13:49 [pve-devel] [PATCH pve-installer; pve-docs; pmg-docs; proxmox-backup/docs 0/4] Update min RAM and min disk size for pve Noel Ullreich
@ 2023-07-10 13:49 ` Noel Ullreich
  2023-07-10 13:49 ` [pve-devel] [PATCH pmg_docs 1/1] Consistency of GB and GiB pmg Noel Ullreich
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Noel Ullreich @ 2023-07-10 13:49 UTC (permalink / raw)
  To: pve-devel

Check that the system has at least 2 GiB of usable RAM.
The docs for the pmg and pbs (and with this patch series pve as well) already
specify 2 GiB as the minimum RAM needed.

Signed-off-by: Noel Ullreich <n.ullreich@proxmox.com>
---
 proxinstall                       | 4 ++--
 proxmox-tui-installer/src/main.rs | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/proxinstall b/proxinstall
index 274f39c..c8c793d 100755
--- a/proxinstall
+++ b/proxinstall
@@ -1578,8 +1578,8 @@ sub create_intro_view {
     cleanup_view();
 
     my $run_env = Proxmox::Install::RunEnv::get();
-    if (int($run_env->{total_memory}) < 1024) {
-	Proxmox::UI::error("Less than 1 GiB of usable memory detected, installation will probably fail.\n\n".
+    if (int($run_env->{total_memory}) < 2048) {
+	Proxmox::UI::error("Less than 2 GiB of usable memory detected, installation will probably fail.\n\n".
 	    "See 'System Requirements' in the $iso_env->{cfg}->{fullname} documentation.");
     }
 
diff --git a/proxmox-tui-installer/src/main.rs b/proxmox-tui-installer/src/main.rs
index 8721358..192a175 100644
--- a/proxmox-tui-installer/src/main.rs
+++ b/proxmox-tui-installer/src/main.rs
@@ -265,11 +265,11 @@ fn installer_setup_late(siv: &mut Cursive) {
         }
     }
 
-    if total_memory < 1024 {
+    if total_memory < 2048 {
         display_setup_warning(
             siv,
             concat!(
-                "Less than 1 GiB of usable memory detected, installation will probably fail.\n\n",
+                "Less than 2 GiB of usable memory detected, installation will probably fail.\n\n",
                 "See 'System Requirements' in the documentation."
             ),
         );
-- 
2.39.2





^ permalink raw reply	[flat|nested] 8+ messages in thread

* [pve-devel] [PATCH pmg_docs 1/1] Consistency of GB and GiB pmg
  2023-07-10 13:49 [pve-devel] [PATCH pve-installer; pve-docs; pmg-docs; proxmox-backup/docs 0/4] Update min RAM and min disk size for pve Noel Ullreich
  2023-07-10 13:49 ` [pve-devel] [PATCH pve-installer 1/1] raise the minimum ram requirements to 2 GiB Noel Ullreich
@ 2023-07-10 13:49 ` Noel Ullreich
  2024-01-22 17:58   ` [pve-devel] applied: " Stoiko Ivanov
  2023-07-10 13:49 ` [pve-devel] [PATCH pve_docs 1/1] raise min ram requirements to 2 GiB and specify min disk space Noel Ullreich
  2023-07-10 13:49 ` [pve-devel] [PATCH proxmox-backup/docs 1/1] Consistency of GB and GiB pbs Noel Ullreich
  3 siblings, 1 reply; 8+ messages in thread
From: Noel Ullreich @ 2023-07-10 13:49 UTC (permalink / raw)
  To: pve-devel

Since the actual system-checks are done in GiB and to stay consistent
with the other docs, change all GB units to GiB

Signed-off-by: Noel Ullreich <n.ullreich@proxmox.com>
---
 pmg-planning-deployment.adoc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pmg-planning-deployment.adoc b/pmg-planning-deployment.adoc
index 9287574..6a0083b 100644
--- a/pmg-planning-deployment.adoc
+++ b/pmg-planning-deployment.adoc
@@ -110,13 +110,13 @@ Minimum System Requirements
 
 * CPU: 64bit (Intel EMT64 or AMD64)
 
-* 2 GB RAM
+* 2 GiB RAM
 
 * Bootable CD-ROM-drive or USB boot support
 
 * Monitor with a minimum resolution of 1024x768 for the installation
 
-* Hard disk with at least 8 GB of disk space
+* Hard disk with at least 8 GiB of disk space
 
 * Ethernet network interface card (NIC)
 
@@ -127,7 +127,7 @@ Recommended System Requirements
 * Multi-core CPU: 64bit (Intel EMT64 or AMD64), +
 ** for use in a virtual machine, activate Intel VT/AMD-V CPU flag
 
-* 4 GB RAM
+* 4 GiB RAM
 
 * Bootable CD-ROM-drive or USB boot support
 
@@ -135,7 +135,7 @@ Recommended System Requirements
 
 * 1 Gbps Ethernet network interface card (NIC)
 
-* Storage: at least 8 GB free disk space, best set up with redundancy,
+* Storage: at least 8 GiB free disk space, best set up with redundancy,
   using a hardware RAID controller with battery backed write cache (``BBU'') or
   ZFS. ZFS is not compatible with hardware RAID controllers. For best
   performance, use enterprise-class SSDs with power loss protection.
-- 
2.39.2





^ permalink raw reply	[flat|nested] 8+ messages in thread

* [pve-devel] [PATCH pve_docs 1/1] raise min ram requirements to 2 GiB and specify min disk space
  2023-07-10 13:49 [pve-devel] [PATCH pve-installer; pve-docs; pmg-docs; proxmox-backup/docs 0/4] Update min RAM and min disk size for pve Noel Ullreich
  2023-07-10 13:49 ` [pve-devel] [PATCH pve-installer 1/1] raise the minimum ram requirements to 2 GiB Noel Ullreich
  2023-07-10 13:49 ` [pve-devel] [PATCH pmg_docs 1/1] Consistency of GB and GiB pmg Noel Ullreich
@ 2023-07-10 13:49 ` Noel Ullreich
  2023-07-10 13:49 ` [pve-devel] [PATCH proxmox-backup/docs 1/1] Consistency of GB and GiB pbs Noel Ullreich
  3 siblings, 0 replies; 8+ messages in thread
From: Noel Ullreich @ 2023-07-10 13:49 UTC (permalink / raw)
  To: pve-devel

Raise the minimum ram required for a PVE instance.
Also specify the minimum and recommended disk space for a PVE instance in GiB.

Signed-off-by: Noel Ullreich <n.ullreich@proxmox.com>
---
 pve-system-requirements.adoc | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/pve-system-requirements.adoc b/pve-system-requirements.adoc
index bb474ac..4e789a4 100644
--- a/pve-system-requirements.adoc
+++ b/pve-system-requirements.adoc
@@ -22,9 +22,9 @@ used in production.
 
 * Intel VT/AMD-V capable CPU/Mainboard for KVM full virtualization support
 
-* RAM: 1 GB RAM, plus additional RAM needed for guests
+* RAM: 2 GiB RAM, plus additional RAM needed for guests
 
-* Hard drive
+* Disk Space: a hard drive with at least a 16 GiB capacity
 
 * One network card (NIC)
 
@@ -35,14 +35,14 @@ Recommended System Requirements
 
 * Intel EMT64 or AMD64 with Intel VT/AMD-V CPU flag.
 
-* Memory: Minimum 2 GB for the OS and {pve} services, plus designated memory for
-  guests. For Ceph and ZFS, additional memory is required; approximately 1GB of
-  memory for every TB of used storage.
+* Memory: Minimum 4 GiB for the OS and {pve} services, plus designated memory for
+  guests. For Ceph and ZFS, additional memory is required; approximately 1 GiB of
+  memory for every TiB of used storage.
 
 * Fast and redundant storage, best results are achieved with SSDs.
 
 * OS storage: Use a hardware RAID with battery protected write cache (``BBU'')
-  or non-RAID with ZFS (optional SSD for ZIL).
+  or non-RAID with ZFS (optional SSD for ZIL) with at least a 32 GiB capacity.
 
 * VM storage:
 ** For local storage, use either a hardware RAID with battery backed write cache
-- 
2.39.2





^ permalink raw reply	[flat|nested] 8+ messages in thread

* [pve-devel] [PATCH proxmox-backup/docs 1/1] Consistency of GB and GiB pbs
  2023-07-10 13:49 [pve-devel] [PATCH pve-installer; pve-docs; pmg-docs; proxmox-backup/docs 0/4] Update min RAM and min disk size for pve Noel Ullreich
                   ` (2 preceding siblings ...)
  2023-07-10 13:49 ` [pve-devel] [PATCH pve_docs 1/1] raise min ram requirements to 2 GiB and specify min disk space Noel Ullreich
@ 2023-07-10 13:49 ` Noel Ullreich
  3 siblings, 0 replies; 8+ messages in thread
From: Noel Ullreich @ 2023-07-10 13:49 UTC (permalink / raw)
  To: pve-devel

Since the actual system-checks are done in GiB and to stay consistent
with the other docs, change all GB units to GiB

Signed-off-by: Noel Ullreich <n.ullreich@proxmox.com>
---
 docs/system-requirements.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/system-requirements.rst b/docs/system-requirements.rst
index fb920865..07fcf3a3 100644
--- a/docs/system-requirements.rst
+++ b/docs/system-requirements.rst
@@ -14,9 +14,9 @@ used in production.
 
 * CPU: 64bit (*x86-64* or *AMD64*), 2+ Cores
 
-* Memory (RAM): 2 GB RAM
+* Memory (RAM): 2 GiB RAM
 
-* Hard drive: more than 8GB of space.
+* Hard drive: more than 8GiB of space.
 
 * Network card (NIC)
 
-- 
2.39.2





^ permalink raw reply	[flat|nested] 8+ messages in thread

* [pve-devel] applied: [PATCH pmg_docs 1/1] Consistency of GB and GiB pmg
  2023-07-10 13:49 ` [pve-devel] [PATCH pmg_docs 1/1] Consistency of GB and GiB pmg Noel Ullreich
@ 2024-01-22 17:58   ` Stoiko Ivanov
  2024-02-06 12:20     ` Thomas Lamprecht
  0 siblings, 1 reply; 8+ messages in thread
From: Stoiko Ivanov @ 2024-01-22 17:58 UTC (permalink / raw)
  To: Proxmox VE development discussion

applied this one to pmg-docs - huge thanks!


On Mon, Jul 10, 2023 at 03:49:49PM +0200, Noel Ullreich wrote:
> Since the actual system-checks are done in GiB and to stay consistent
> with the other docs, change all GB units to GiB
> 
> Signed-off-by: Noel Ullreich <n.ullreich@proxmox.com>
> ---
>  pmg-planning-deployment.adoc | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/pmg-planning-deployment.adoc b/pmg-planning-deployment.adoc
> index 9287574..6a0083b 100644
> --- a/pmg-planning-deployment.adoc
> +++ b/pmg-planning-deployment.adoc
> @@ -110,13 +110,13 @@ Minimum System Requirements
>  
>  * CPU: 64bit (Intel EMT64 or AMD64)
>  
> -* 2 GB RAM
> +* 2 GiB RAM
>  
>  * Bootable CD-ROM-drive or USB boot support
>  
>  * Monitor with a minimum resolution of 1024x768 for the installation
>  
> -* Hard disk with at least 8 GB of disk space
> +* Hard disk with at least 8 GiB of disk space
>  
>  * Ethernet network interface card (NIC)
>  
> @@ -127,7 +127,7 @@ Recommended System Requirements
>  * Multi-core CPU: 64bit (Intel EMT64 or AMD64), +
>  ** for use in a virtual machine, activate Intel VT/AMD-V CPU flag
>  
> -* 4 GB RAM
> +* 4 GiB RAM
>  
>  * Bootable CD-ROM-drive or USB boot support
>  
> @@ -135,7 +135,7 @@ Recommended System Requirements
>  
>  * 1 Gbps Ethernet network interface card (NIC)
>  
> -* Storage: at least 8 GB free disk space, best set up with redundancy,
> +* Storage: at least 8 GiB free disk space, best set up with redundancy,
>    using a hardware RAID controller with battery backed write cache (``BBU'') or
>    ZFS. ZFS is not compatible with hardware RAID controllers. For best
>    performance, use enterprise-class SSDs with power loss protection.
> -- 
> 2.39.2
> 
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 
> 




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [pve-devel] applied: [PATCH pmg_docs 1/1] Consistency of GB and GiB pmg
  2024-01-22 17:58   ` [pve-devel] applied: " Stoiko Ivanov
@ 2024-02-06 12:20     ` Thomas Lamprecht
  2024-02-13 10:37       ` Stoiko Ivanov
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas Lamprecht @ 2024-02-06 12:20 UTC (permalink / raw)
  To: Proxmox VE development discussion, Stoiko Ivanov

Am 22/01/2024 um 18:58 schrieb Stoiko Ivanov:
> applied this one to pmg-docs - huge thanks!
> 
> 
> On Mon, Jul 10, 2023 at 03:49:49PM +0200, Noel Ullreich wrote:
>> Since the actual system-checks are done in GiB and to stay consistent
>> with the other docs, change all GB units to GiB
>>
>> Signed-off-by: Noel Ullreich <n.ullreich@proxmox.com>
>> ---
>>  pmg-planning-deployment.adoc | 8 ++++----
>>  1 file changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/pmg-planning-deployment.adoc b/pmg-planning-deployment.adoc
>> index 9287574..6a0083b 100644
>> --- a/pmg-planning-deployment.adoc
>> +++ b/pmg-planning-deployment.adoc
>> @@ -110,13 +110,13 @@ Minimum System Requirements
>>  
>>  * CPU: 64bit (Intel EMT64 or AMD64)
>>  
>> -* 2 GB RAM
>> +* 2 GiB RAM
>>  
>>  * Bootable CD-ROM-drive or USB boot support
>>  
>>  * Monitor with a minimum resolution of 1024x768 for the installation
>>  
>> -* Hard disk with at least 8 GB of disk space
>> +* Hard disk with at least 8 GiB of disk space

this is using the wrong unit though, we use the SI based GB for
disk space, as most storage vendors do, GiB is fine for memory though.

>>  
>>  * Ethernet network interface card (NIC)
>>  
>> @@ -127,7 +127,7 @@ Recommended System Requirements
>>  * Multi-core CPU: 64bit (Intel EMT64 or AMD64), +
>>  ** for use in a virtual machine, activate Intel VT/AMD-V CPU flag
>>  
>> -* 4 GB RAM
>> +* 4 GiB RAM
>>  
>>  * Bootable CD-ROM-drive or USB boot support
>>  
>> @@ -135,7 +135,7 @@ Recommended System Requirements
>>  
>>  * 1 Gbps Ethernet network interface card (NIC)
>>  
>> -* Storage: at least 8 GB free disk space, best set up with redundancy,
>> +* Storage: at least 8 GiB free disk space, best set up with redundancy,

same here

>>    using a hardware RAID controller with battery backed write cache (``BBU'') or
>>    ZFS. ZFS is not compatible with hardware RAID controllers. For best
>>    performance, use enterprise-class SSDs with power loss protection.
>> -- 
>> 2.39.2




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [pve-devel] applied: [PATCH pmg_docs 1/1] Consistency of GB and GiB pmg
  2024-02-06 12:20     ` Thomas Lamprecht
@ 2024-02-13 10:37       ` Stoiko Ivanov
  0 siblings, 0 replies; 8+ messages in thread
From: Stoiko Ivanov @ 2024-02-13 10:37 UTC (permalink / raw)
  To: Thomas Lamprecht; +Cc: Proxmox VE development discussion

Thanks for the catch!
pushed a fix-up


On Tue, 6 Feb 2024 13:20:51 +0100
Thomas Lamprecht <t.lamprecht@proxmox.com> wrote:

> Am 22/01/2024 um 18:58 schrieb Stoiko Ivanov:
> > applied this one to pmg-docs - huge thanks!
> > 
> > 
> > On Mon, Jul 10, 2023 at 03:49:49PM +0200, Noel Ullreich wrote:  
> >> Since the actual system-checks are done in GiB and to stay consistent
> >> with the other docs, change all GB units to GiB
> >>
> >> Signed-off-by: Noel Ullreich <n.ullreich@proxmox.com>
> >> ---
> >>  pmg-planning-deployment.adoc | 8 ++++----
> >>  1 file changed, 4 insertions(+), 4 deletions(-)
> >>
> >> diff --git a/pmg-planning-deployment.adoc b/pmg-planning-deployment.adoc
> >> index 9287574..6a0083b 100644
> >> --- a/pmg-planning-deployment.adoc
> >> +++ b/pmg-planning-deployment.adoc
> >> @@ -110,13 +110,13 @@ Minimum System Requirements
> >>  
> >>  * CPU: 64bit (Intel EMT64 or AMD64)
> >>  
> >> -* 2 GB RAM
> >> +* 2 GiB RAM
> >>  
> >>  * Bootable CD-ROM-drive or USB boot support
> >>  
> >>  * Monitor with a minimum resolution of 1024x768 for the installation
> >>  
> >> -* Hard disk with at least 8 GB of disk space
> >> +* Hard disk with at least 8 GiB of disk space  
> 
> this is using the wrong unit though, we use the SI based GB for
> disk space, as most storage vendors do, GiB is fine for memory though.
> 
> >>  
> >>  * Ethernet network interface card (NIC)
> >>  
> >> @@ -127,7 +127,7 @@ Recommended System Requirements
> >>  * Multi-core CPU: 64bit (Intel EMT64 or AMD64), +
> >>  ** for use in a virtual machine, activate Intel VT/AMD-V CPU flag
> >>  
> >> -* 4 GB RAM
> >> +* 4 GiB RAM
> >>  
> >>  * Bootable CD-ROM-drive or USB boot support
> >>  
> >> @@ -135,7 +135,7 @@ Recommended System Requirements
> >>  
> >>  * 1 Gbps Ethernet network interface card (NIC)
> >>  
> >> -* Storage: at least 8 GB free disk space, best set up with redundancy,
> >> +* Storage: at least 8 GiB free disk space, best set up with redundancy,  
> 
> same here
> 
> >>    using a hardware RAID controller with battery backed write cache (``BBU'') or
> >>    ZFS. ZFS is not compatible with hardware RAID controllers. For best
> >>    performance, use enterprise-class SSDs with power loss protection.
> >> -- 
> >> 2.39.2  





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-02-13 10:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-10 13:49 [pve-devel] [PATCH pve-installer; pve-docs; pmg-docs; proxmox-backup/docs 0/4] Update min RAM and min disk size for pve Noel Ullreich
2023-07-10 13:49 ` [pve-devel] [PATCH pve-installer 1/1] raise the minimum ram requirements to 2 GiB Noel Ullreich
2023-07-10 13:49 ` [pve-devel] [PATCH pmg_docs 1/1] Consistency of GB and GiB pmg Noel Ullreich
2024-01-22 17:58   ` [pve-devel] applied: " Stoiko Ivanov
2024-02-06 12:20     ` Thomas Lamprecht
2024-02-13 10:37       ` Stoiko Ivanov
2023-07-10 13:49 ` [pve-devel] [PATCH pve_docs 1/1] raise min ram requirements to 2 GiB and specify min disk space Noel Ullreich
2023-07-10 13:49 ` [pve-devel] [PATCH proxmox-backup/docs 1/1] Consistency of GB and GiB pbs Noel Ullreich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal