NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

loco42's avatar
loco42
Aspirant
Oct 24, 2017
Solved

increase swap partition

Hi All,

I have upgraded from 4GB RAM to 16GB. I feel like I should increase the swap partition. What do you think, shall I and how can I do this?  Especially using RAID-1 I'm not sure whether I shall/can just use parted or alike.

 

Thanks a lot

 Loco

---

Here are some details on my system:

 

root@NAS:~# free
total used free shared buffers cached
Mem: 16371604 15804984 566620 23040 1556 1759608
-/+ buffers/cache: 14043820 2327784
Swap: 523708 68516 455192

 

root@NAS:~# fdisk -l

Disk /dev/sda: 5.5 TiB, 6001175126016 bytes, 11721045168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: E618EEDA-24FC-4E3D-B8A2-AD0C9D62A0CA

Device Start End Sectors Size Type
/dev/sda1 64 8388671 8388608 4G Linux RAID
/dev/sda2 8388672 9437247 1048576 512M Linux RAID
/dev/sda3 9437248 11721041071 11711603824 5.5T Linux RAID

Disk /dev/sdb: 5.5 TiB, 6001175126016 bytes, 11721045168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: A07D50E9-4962-4551-AF9B-35CDB07EB192

Device Start End Sectors Size Type
/dev/sdb1 64 8388671 8388608 4G Linux RAID
/dev/sdb2 8388672 9437247 1048576 512M Linux RAID
/dev/sdb3 9437248 11721041071 11711603824 5.5T Linux RAID

Disk /dev/md0: 4 GiB, 4290772992 bytes, 8380416 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/md1: 511.4 MiB, 536281088 bytes, 1047424 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/md127: 5.5 TiB, 5996206882816 bytes, 11711341568 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

 

  • One option might be to create a swap file, and place that on the data volume (or even a dedicated SSD volume).

     

    Not something I've tried, but it seems to me that it should work, and is probably more sustainable than repartitioning the drives (e.g., it can easily be put back in place if you ever need to do a factory reset).

6 Replies

Replies have been turned off for this discussion
  • StephenB's avatar
    StephenB
    Guru - Experienced User

    Is there some application you want to run that requires swapping?

    • loco42's avatar
      loco42
      Aspirant

      Hi Stephen,

       

      thanks for the quick reply.  The answer is YES I'm running virtualbox on the system so it may happen that swapping is required.

       

      • StephenB's avatar
        StephenB
        Guru - Experienced User

        One option might be to create a swap file, and place that on the data volume (or even a dedicated SSD volume).

         

        Not something I've tried, but it seems to me that it should work, and is probably more sustainable than repartitioning the drives (e.g., it can easily be put back in place if you ever need to do a factory reset).

    • loco42's avatar
      loco42
      Aspirant

      Hi Stephen,

      thanks again for your feedback.  I will try with the swap file sounds most reasonable to me.

      Best regards

       el Loco

       

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More