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!

USB and swap partitions and cloud

New installs of XigmaNAS.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Nacht
NewUser
NewUser
Posts: 1
Joined: 29 Nov 2012 23:27
Status: Offline

USB and swap partitions and cloud

Post by Nacht »

i was wondering a few things.

i have a 1gig USB stick and was installing embedded +swap+data. if the install takes 120mg can i use the rest for swap or how much is the maximum (install defaulted to 543). (my physical system memory is 768)

Is it possible to change the swap partition size after install?

is it possible to use a second USB drive just for swap?

why after install does it only show 543mg of my 768mg on the system info page?

and last question... I really loved iDisk and was sad to see it go away. I have tried dropbox and others like it but nothing gives me that mountable drive like idisk had and worked so well on my iPhone/macs ect. I was looking at barracuda drive http://barracudadrive.com which seems to be a nice personal use replacement. is there a way to install this into NAS4Free, or do something like this that can offer access both on and off network for laptops and iPhones?

thanks

davidb
Starter
Starter
Posts: 55
Joined: 05 Jul 2012 17:51
Status: Offline

Re: USB and swap partitions and cloud

Post by davidb »

using swap on a usb stick can kill it quickly, too much I/O.
(technically, you can choose your swap device from the system>advanced>swap menu, but again, swap on USB stick will not do good things for its lifespan)
Give us more info about your setup, drives: size/quantity, do you intend to use ZFS or softRAID?
for installing extras software , use jails. quick search in the forums will show up some nice tutorials on jail setup.

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

Re: USB and swap partitions and cloud

Post by armandh »

one would be better off with a small Hdd for the swap
besides the problem of flash memory write wear
one is far better off with more ram memory
using usb memory for swap is an all around bad idea.
Last edited by armandh on 22 Jan 2013 14:02, edited 1 time in total.
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]

Onichan
Advanced User
Advanced User
Posts: 238
Joined: 04 Jul 2012 21:41
Status: Offline

Re: USB and swap partitions and cloud

Post by Onichan »

Also you aren't required to have a swap partition at all. So as the others said do not use swap on USB and I would just disable it.

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

Re: USB and swap partitions and cloud

Post by armandh »

PS
768 Mb of memory is more than enough for USF formatted storage
even using embedded N4F. I have done FN7 on as little as 256 Mb.
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]

raylab
NewUser
NewUser
Posts: 4
Joined: 01 Dec 2012 16:44
Status: Offline

Re: USB and swap partitions and cloud

Post by raylab »

In regards to your question about why only 543M shows in the system info page. As I understand it, this is due to part of the 768M physical memory being used for a RAMdisk to hold the running embedded OS. Take a look at the page Diagnostics->Information->Space Used. There should be a /dev/md0 and /dev/md1, which are the RAMdisks for the OS. The total size of them should be about equal to the "missing" space.

Hope this helps you better understand what is going on in the system.

Flappjakk
NewUser
NewUser
Posts: 2
Joined: 24 Feb 2014 04:41
Status: Offline

Re: USB and swap partitions and cloud

Post by Flappjakk »

I'm sorry to revive this old thread.

What about the swap on a USB rotational hard drive? Since it isn't flash the repeated reads/writes to swap would have no real impact on the life of the drive, but would the slower bandwidth on USB versus SATA have any real impact on the system. I'm currenlty booting embedded from a 512MB USB flash drive, my system has 16GB RAM and I have 1 GB swap enabled on a ZFS device. The system always reports that swap is 0% utilized. I've been considering replacing the 512MB USB flash drive with a 256GB USB hard drive and using some space on the HDD for swap.

So back to the real question, this topic discourages swap on USB flash. Is it more accurrate to interpret this as discouraging swapping on flash regardless of connection due to wearing out the part, or discouraging swapping on USB in general because of the lesser bandwidth?

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: USB and swap partitions and cloud

Post by raulfg3 »

Flappjakk wrote:my system has 16GB RAM and I have 1 GB swap enabled on a ZFS device. The system always reports that swap is 0% utilized.
In my experience, no swap is needed, if you think that need swap, buy more RAM, if you have enought RAM you do not need swap. but is only my experience.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

Flappjakk
NewUser
NewUser
Posts: 2
Joined: 24 Feb 2014 04:41
Status: Offline

Re: USB and swap partitions and cloud

Post by Flappjakk »

You're right swap is most likely not needed, as evidenced by it being 0% utilized. I have more than enough space with 4 4TB SATA HDDs and 1 250GB USB HDD boot disk to allocate at least 1GB (or more) to swap, just in case.

But I'm more interested in the discussion that was happening in this thread regarding swap on USB flash. In the case that swap becomes necessary on my or any system, should I/we avoid swap on flash, avoid swap on USB, or avoid some combination of USB and flash?

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

Re: USB and swap partitions and cloud

Post by armandh »

swap through usb will be slow
most anything through usb is a performance killer.
but an embedded OS on a USB device can be slow through the boot up if it wants
but once done it is very fast in RAM
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]

Post Reply

Return to “Install XigmaNAS”