Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
Any benefits to use /var and /tmp as RAM disk?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Any benefits to use /var and /tmp as RAM disk? (Read 6831 times)
OpenSense
Newbie
Posts: 4
Karma: 0
Any benefits to use /var and /tmp as RAM disk?
«
on:
April 25, 2021, 01:09:32 am »
Hey guys. So I recently bought a router from Aliexpress and I installed OPNsense on it. I was watching a few tutorial videos on OPNsense and Pfsense since I am new to these types of routers.
I remember watching one tutorial and the guy said it is recommended to put /var and /tmp as a RAM disk so it won't wear out my SSD, and it can also help with security. I see that I can do this in System > Settings > miscellaneous.
I tried Googling it, but I cannot find anything recent about this.
I have 8GB of RAM on my router, and idle I am at around 5% memory usage. So I have more than enough RAM to do so. But would there be any benefit? Would there be any risks?
Logged
marjohn56
Hero Member
Posts: 1701
Karma: 179
Re: Any benefits to use /var and /tmp as RAM disk?
«
Reply #1 on:
April 25, 2021, 01:40:54 am »
You lose certain historic data when the system reboots but nothing critical. The senses both re-create all the important stuff afresh on startup. It's how I've had my systems running for years. So that advantages are less I/O on the drive, faster I/O because it's effectively a RAM drive; disadvantages are loss of that historic non critical data, which I for one am not that interested in. I cannot think of anything else, someone else might do though.
Logged
OPNsense 24.7
-
Qotom Q355G4
- ISP -
Squirrel 1Gbps
.
Team Rebellion Member
- If we've helped you remember to applaud
dinguz
Sr. Member
Posts: 275
Karma: 13
Re: Any benefits to use /var and /tmp as RAM disk?
«
Reply #2 on:
April 25, 2021, 05:21:38 pm »
I believe it's mainly for historical reasons, as most of the older Alix/APU firewall appliances and the like were sold with compact flash cards instead of 'real' harddrives. Running these mount points as a ramdrive reduces writes to the media and prolongs its lifespan.
«
Last Edit: April 25, 2021, 05:27:56 pm by dinguz
»
Logged
In theory there is no difference between theory and practice. In practice there is.
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
Any benefits to use /var and /tmp as RAM disk?