PfSense zero Swap Usage



  • Hello

    i recently built new 1U pfsense device using some server grade hardware.

    how can i reduce swap size to 2GB only because i don't see keeping 20GB of swap will be used anywhere. i want to allocate more SSD space to squid caching for youtube webpages.

    Can i use pfsense CPU temp for intel X3430

    please check screenshot for reference

    Chasis – Supermicro - http://www.supermicro.com/products/chassis/1U/512/SC512L-260.cfm
    Chassis            1U Rack Mountable
    Power  Supply  260W High Efficiency Power Supply
    Graphics          Integrated Matrox G2000eW
    Motherboard - supermicro X8SIL
    Processor - Intel X3430 http://ark.intel.com/products/42927/Intel-Xeon-Processor-X3430-(8M-Cache-2_40-GHz)
    Intel Processor X3430 (Quad - Core/2.40GHz/8M Cache)
    Intel 82574L Dual - Port Gigabit Ethernet Controller
    Chipset            Intel 3400 Chipset
    Memory - 16GB DDR3, 1333-ECC Registered
    SSD - OCZ 62GB
    Optical Drive NO




  • If you do a Custom install instead of Quick/Easy you'll get the opportunity to set partition sizes (including swap) as you prefer.



  • @divsys:

    If you do a Custom install instead of Quick/Easy you'll get the opportunity to set partition sizes (including swap) as you prefer.

    it means after install not possible :(



  • it means after install not possible :(

    I'm not sure that FreeBSD supports shrinking a partition.  You can do a config.xml backup, reinstall pfSense with whatever you want, then restore your config.xml.  Or you can try playing with gpart and creating a new swap and then deleting the old one perhaps.



  • it means after install not possible :(

    As KOM mentioned, it may be possible with some partition jiggery after the install.
    Realistically I would consider far easier to just take a backup of the current config.xml and reinstall from scratch.

    IMHO that's much simpler than messing with partitions after the install.
    Building the partitions the way you want from the start will be cleaner and  less error prone, especially if you're try to get usable space back from the process.

    Just my $.02



  • ok sir i prefer take backup and fresh install.

    config.xml will restore my all downloaded packages or i have to re-download all pfblockerng squid snort etc..  ???



  • It will download your packages again unless you selected the Skip packages checkbox when doing your backup.



  • @KOM:

    It will download your packages again unless you selected the Skip packages checkbox when doing your backup.

    Thanks KOM, will config backup and fresh custom install pfSense so that this time can manage SWAP size only 4GB for 16GB ECC RAM…