This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Enter the size of the swap partition in MB?

New installs of XigmaNAS.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
chris.shelton
Starter
Starter
Posts: 36
Joined: 08 May 2015 12:01
Status: Offline

Enter the size of the swap partition in MB?

Post by chris.shelton »

I understand what swap size is, but I don't understand why this gets asked upon installation.

Does this partition my boot usb stick? I chose a value of 1024, but isn't this going to create a load of extra writes to my USB stick for virtual memory?

Thanks

armandh
Advanced User
Advanced User
Posts: 398
Joined: 23 Jun 2012 04:15
Location: St Louis County Missouri USA
Status: Offline

Re: Enter the size of the swap partition in MB?

Post by armandh »

you are likely trying to do a full install on flash which is not recommended
if you are doing the embedded there should be an install without swap
4 thread 3300 Mhz Intel i3, 1 TB ZFS mirror, available RAM 7.823 Gb, 64 bit NAS4Free 9.1.0.1 rev 573 [88 watts, 48 Mbps]
2 thread 1600 Mhz atom/ion, 1 TB ZFS mirror, available RAM 3.083 Gb, 64 bit NAS4Free-9.1.0.1 rev 573 [27 watts, 35 Mbps]
2 thread 3900 Mhz AMD A6-6400K, 2 TB ZFS Mirror, available RAM 7.557 Gb, 64 bit Nas4Free 9.3.0.2.1771 [89 watts, 68 Mbps]

chris.shelton
Starter
Starter
Posts: 36
Joined: 08 May 2015 12:01
Status: Offline

Re: Enter the size of the swap partition in MB?

Post by chris.shelton »

armandh wrote:you are likely trying to do a full install on flash which is not recommended
if you are doing the embedded there should be an install without swap
It's an embedded install, not with DATA + SWAP or anything.

In the install & upgrade options menu, I chose number 1 - Install 'Embedded' OS/MBR on HDD/SSD/CF/USB (preferred).

Number 4 says 'Install 'Embedded' OS/MBR without SWAP (for expert). The 'for expert' bit deterred me. Should I be going for this option?

armandh
Advanced User
Advanced User
Posts: 398
Joined: 23 Jun 2012 04:15
Location: St Louis County Missouri USA
Status: Offline

Re: Enter the size of the swap partition in MB?

Post by armandh »

Ive always used the #1 option
but I'm using older N4F
4 thread 3300 Mhz Intel i3, 1 TB ZFS mirror, available RAM 7.823 Gb, 64 bit NAS4Free 9.1.0.1 rev 573 [88 watts, 48 Mbps]
2 thread 1600 Mhz atom/ion, 1 TB ZFS mirror, available RAM 3.083 Gb, 64 bit NAS4Free-9.1.0.1 rev 573 [27 watts, 35 Mbps]
2 thread 3900 Mhz AMD A6-6400K, 2 TB ZFS Mirror, available RAM 7.557 Gb, 64 bit Nas4Free 9.3.0.2.1771 [89 watts, 68 Mbps]

User avatar
crowi
Forum Moderator
Forum Moderator
Posts: 1176
Joined: 21 Feb 2013 16:18
Location: Munich, Germany
Status: Offline

Re: Enter the size of the swap partition in MB?

Post by crowi »

the swap is enabled by default since 9.3.x.x
depending on the amount of memory your system has, you can try to en- or disable it.
I tend to stick to the recommendations, but I don't know either if it will wear out the USB stick or not.
My system is currently in the testing phase on 10.1.x.x (8 GB USB stick, 4GB swap on it by default).
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded

User avatar
JoseMR
Hardware & Software Guru
Hardware & Software Guru
Posts: 1058
Joined: 16 Apr 2014 04:15
Location: PR
Contact:
Status: Offline

Re: Enter the size of the swap partition in MB?

Post by JoseMR »

chris.shelton wrote:I understand what swap size is, but I don't understand why this gets asked upon installation.

Does this partition my boot usb stick? I chose a value of 1024, but isn't this going to create a load of extra writes to my USB stick for virtual memory?

Thanks
You can go with option #4 without worrying if you feel you don't need swap at all, although USB flash is not designed for heavy writing and are slow.

The (for expert) basically meant that you need to manually set/specify a swap partition on another drive, (mandatory in production environments)

If this is a home setup don't worry at all, if is a production setup, you'll probably use an SSD/small HDD overall.

Regards
System: FreeBSD 12 RootOnZFS Mirror, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
Resources Home Page

User avatar
F8BOE
experienced User
experienced User
Posts: 106
Joined: 03 Jun 2013 23:09
Location: France
Status: Offline

Re: Enter the size of the swap partition in MB?

Post by F8BOE »

Hello,

This is now a pretty old thread... Have things evolved since? Do we really need a SWAP partition at all when not using ZFS?

I find it pretty hefty for my CF card to be struggled day after day with read/write actions that will in the end only kill it!
On my PII 400 / 768 MB RAM, only 22% of the 727 MB left are used (max. at 28% when streaming videos for three users and audio for two users simultaneously) the SWAP keeps constant at 8% of the available 2GB on the CF.

OK, assuming there are no read/write actions as the SWAP used keeps constant (only assuming it...) I could live with it, but nonetheless, it's quite groovy to have this space filled up for nothing.

Since the new structure with SWAP etc... It takes four to five times longer to boot the server... Quite annoying...

So did people ever try to use their embedded system without SWAP on version 10.x? Did they encounter problems running the system without SWAP?

Ciao @+

User avatar
Parkcomm
Advanced User
Advanced User
Posts: 384
Joined: 21 Sep 2012 12:58
Location: Australia
Status: Offline

Re: Enter the size of the swap partition in MB?

Post by Parkcomm »

If you can keep the active processes within RAM you don't need swap - but the amount of memory required is based on numb er of programs, jails etc vying for mem space.

So if you don't run many programs you probably don't need swap (you can monitor with top or rrdgraphs)

Also you are right - don't put sap on your CF card, it will kill it. Put it on your data disks - if you can' provide a dedicated partition, swap can use a file.
NAS4Free Embedded 10.2.0.2 - Prester (revision 2003), HP N40L Microserver (AMD Turion) with modified BIOS, ZFS Mirror 4 x WD Red + L2ARC 128M Apple SSD, 10G ECC Ram, Intel 1G CT NIC + inbuilt broadcom

Post Reply

Return to “Install XigmaNAS”