[12:06] <supremekai> Hey guys, I have a VPS in VULTR with Ubuntu 20.04 and 2GB of RAM. What would be the best size of the swap memory? I've seen this table here and seems that 1GB of RAM and 2GB of RAM both use 1GB of swap: https://prnt.sc/10rko11
[15:05] <tomreyn> supremekai: yes, 1 gb should be fine. or even none, if you want to prevent it from running slow and prefer it killing processes instead.
[15:05] <supremekai> tomreyn, I already created a swapfile of 4GB
[15:05] <supremekai> I changed the swappiness and vfs cache options to 10 and 50 respectively
[15:05] <tomreyn> oh, it's been some hours, i didnt realize
[15:06] <supremekai> no prob, thnks for the help tomreyn !
[15:06] <tomreyn> do you actually manage the kernel there?
[15:06] <supremekai> Do u think 4G is too much?
[15:06] <supremekai> How come tomreyn ? In what sense?
[15:06] <tomreyn> does    cat /proc/version    suggest you're running the kernel which is installed at /boot/ ?
[15:07] <supremekai> root@vultr:/home/MONI_WEB_19-03-2021_9cc8f1ec23d9-master/automatic# cat /proc/version
[15:07] <supremekai> Linux version 5.4.0-67-generic (buildd@lcy01-amd64-025) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #75-Ubuntu SMP Fri Feb 19 18:03:38 UTC 2021
[15:07] <tomreyn> some VPSs don't use full virtualization but just paravirtualization which a shared kernel
[15:07] <tomreyn> that's probably you managing the whole thening then, good.
[15:08] <tomreyn> *thing
[15:08] <supremekai> I posted the cat /proc/version above
[15:08] <supremekai> if I got no answer from such command means I am not managing the kernel?
[15:08] <tomreyn> if you're going to fill 4 GB RAM by swapping trhen you're definitely making this system do too much
[15:09] <supremekai> So, should I change it to 1GB?
[15:09] <supremekai> I don't get this table: https://prnt.sc/10rko11
[15:09] <supremekai> Can't I allocate 2GB of ram for a 2GB VPS?
[15:10] <tomreyn> you'd get output for    cat /proc/version    either way, but if it was paravirtualization you'd likely see some other details on the kernel. often those are centos / rhel kernels.
[15:10] <supremekai> Is there any kind of threshold of increase of minimum swapfile size?
[15:10] <supremekai> ohh ok
[15:11] <tomreyn> generally, you should never place a workload on a server which will, on average, make it need to allocate more RAM than it has physically available.
[15:11] <tomreyn> i.e. the system should not swap out due to memory pressure regularly
[15:12] <tomreyn> you may want to allow it to do so temporarily during load spikes, that's what swap is for
[15:12] <tomreyn> swap is also, to a much lesser degree, to store on disk some data that's not accessed much and would otherwise block ram.
[15:13] <tomreyn> the kernel does both of this automatically
[16:46] <MIF> is it possable to get back a folder I removed?
[18:11] <tomreyn> MIF: maybe with photorec, but it's a matter of luck, less and less likely the more your system writes to the file system.
[18:17] <MIF> tomreyn: I tried that and just had to re put up the bot
[18:19] <tomreyn> MIF: i do not understand what you mean by "re put up the bot"
[18:20] <MIF> it was a bot that I removed
[18:50] <MIF> out of gzip, bzip2 and XZ what will compess more?
[19:21] <tomreyn> ^ answered i #ubuntu - pleas edon't cross post
[19:21] <tomreyn> ^ answered in #ubuntu - please don't cross post
[19:28] <MIF> ok, thank you tomreyn
[23:43] <ivo_cavalcante> hi all,
[23:44] <ivo_cavalcante> does the server installer provides full customization of package selection on auto installer,
[23:45] <ivo_cavalcante> or there's a set of packages that will always be installed, no matter what auto install says?