Hello, i am using dedicated server with two disks, you can see here Code: Filesystem Size Used Avail Use% Mounted on udev 16G 0 16G 0% /dev tmpfs 3.2G 756K 3.2G 1% /run /dev/sda1 911G 2.8G 862G 1% / tmpfs 16G 48K 16G 1% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock /dev/sdb1 916G 32G 838G 4% /var tmpfs 3.2G 0 3.2G 0% /run/user/0 root@xxx:~# ^C and memory usage Code: total used free shared buff/cache available Mem: 32059 5218 18532 451 8308 25937 Swap: 5915 0 5915 I am not using swap and i would like to know if here any safe option to reduce swap memory for example to 2 GB and increase memory up to theese 3 gb. I think that this is not secure, but i would like to know if here anybody who has experience with this. At all, i would like to ask too why i can see too many tmpfs folders. THank you.
don't worry about tmpfs folders.. they're created and destroyed as necessary by various processes/services. the swap memory, depending on how it was setup/configured.. could itself just be a file in another partition, eg a swapfile in / or it could be a completely separate disk partition directly on a drive, or a separate logical volume within a physical volume group, which could be made up of 1 or several physical disks.. so how you resize it would be completely different for each scenario. more physical memory is always nice, but that doesn't automatically mean you should reduce the swap allocation, and just because you are not using swap at the time you checked the memory usage does not mean you are never using the swap. https://haydenjames.io/linux-performance-almost-always-add-swap-space/