Changes coming to Clear Linux' direction in 2020

nvmd, [caveat: I have not gotten the CL installer to work yet.] Can you explain this? Does CL not use the classic linux utilities swapon and swapoff to control swap use? see

man swapoff
swapon, swapoff - enable/disable devices and files for paging and swapping

In case you want to remove the swap partition, is it not listed in /etc/fstab?
man fstab
fstab - static information about the filesystems

CL does not use fstab to load mount system mount points initially. It uses systemd. You can still mount an drive with fstab however system doesn’t depend on its existance and doesn’t use it to mount swap.

3 Likes

permanently disable swap

function disable_swap() {
	swapcount=$(sudo grep '^/dev/\([0-9a-z]*\).*' /proc/swaps | wc -l)

	if [ "$swapcount" != "0" ]; then
		sudo systemctl mask "$(sed -n -e 's#^/dev/\([0-9a-z]*\).*#dev-\1.swap#p' /proc/swaps)" 2>/dev/null
	else
		echo "Swap not enabled"
	fi
}
disable_swap

source:
https://raw.githubusercontent.com/clearlinux/cloud-native-setup/master/clr-k8s-examples/setup_system.sh

1 Like

So how does CL mount swap?
How can it be configured?
Are there arbitrary limits?
Where is it documented?

Maybe these answers would be a good conclusion to the post How to disable swap? - #31 by Dmitry which has good ideas but it’s not clear which is the best way to do it persistently.

The default swap file size:

Default swap file name:

It used ā€œmkswapā€ to create the swap file:

4 Likes

@inmanturbo and @doct0rHu: thank you for your answers. Pointing to the source code is very helpful.

1 Like

So the installer won’t ask me for the CLR_SWAP partition any more? If so, if I already have the partition, can I just disable the swap and delete the partition and reclaim the space?

By default it uses a swap file, but you can provide a CLR_SWAP partition in advanced partitioning scheme.

You can nevertheless create your swap file and disable the swap partition.

Yes you can disable swap and reclaim the space.

That’s working perfectly for me too.
I’ve never had a safer environment.

1 Like

Just seen this news. I’ve been using Clear Linux for some weeks now and wanted to make this as my main OS (currently using debian) because of the speed and optimization. I thought, I found the desktop OS I was looking for many years! Really started loving this.

This is sad. I hope you keep the GNOME, KDE and related applications and continue to provide a desktop image. Let the users and community build the rest.

2 Likes

It’s a right direction. Clear Linux desktop is a failure. I prefer to install server version and then install led.

Or you can have the option of using the F2Fs or BTRFS option when are installing CL.

1 Like

It’s a right direction. Clear Linux desktop is a failure.

I disagree. Clear Linux desktop theme was great.

2 Likes

I feel It makes the fantastic system slow and lagged.
I prefer to install server version only. If needed, install kde later on.

I feel It makes the fantastic system slow and lagged.

Very interesting. Have you done any tests to check this? How big is performance drop?

1 Like

I disagree too.
It’s awesome.
Never had a better system.
It needs to be polished here and there but the performance I’m getting out of n4000 is incredible.
I have a quectel evb I use to connect with it and I ditched my smartphone altogether. I can send/receive calls, surf the web and even use the gps on my laptop, which also has 12hours running time.
Customized as I please, I’ll never go back nor change it with any other operating system out there.
I also have a resin-based 3D printer I managed to run with it without any problem whatsoever.
The only windows-based software I use on it is an old copy of Cinema4D, which I can’t live without, and, luckily, it’s perfect with wine.
Runs virtualbox like a pro, and basically does whatever I throw at it.
It’s definitely not for the faint of heart but I’m having the best experience of my life on it.
I’d say that it’s a power-users’ desktop though as you can’t expect what the average user might expect, but that’s exactly what I love about it.
I’d say they should keep it as it is.
I just need to run it over coreboot, which I didn’t port on my system yet, but then, I’m done for good.
Congratulation to Intel Devs. I can’t stress out too much how good this is.
I’d give you money to express my gratitude, and that’s probably what I’ll do by sticking to Intel-made hardware for my next purchases.
Heavily suggested among peers and friends.
Keep it up!

2 Likes

@peteonrails agree with some of what you said. On the other hand it, would be nice to represent @ahkok fairly. He said ā€œit’s not worth our (the CL devs) timeā€. He did not tell someone they were not worth his time. I agree that would be a bit rude, yet he never said that. Subtle but very meaningful difference. Lets assume good faith

@cmilne I’ve long since moved on from this thread – and after contributing the tutorial for how to get ZFS working, from trying to use this distribution on the desktop – but suffice it to say, I do try to give everyone the benefit of the doubt. While I don’t speak for him, I’m fairly certain that @ahkok considers the hatchet buried. As do I.

1 Like