LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-22-2014, 05:15 AM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Did my swap activate without my command?


Hi guys. I have conky running and it shows swap usage. I deactivated swap with "swapoff -a", after which conky started to show "no swap" message. Then I loaded a lot of YouTube videos which took more that a half of my physical RAM and the message in conky disappeared. I ran "swapoff -a" again and it appeared again. Did my system activate swap without my command?
 
Old 03-22-2014, 10:18 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
On systems with sysvinit this shouldn't be the case, swap is only mounted once automatically, at boot time. Since Arch uses systemd there may be some automatism that automounts swap when some event is triggered or just in a specific interval. I would start to check the cron tables for suspicious actions of that kind.
 
Old 03-23-2014, 04:23 AM   #3
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
Code:
$ crontab -l
no crontab for alex
Guess I have nothing in my crontab. Must be systemd behaves the Windows way.
 
Old 03-23-2014, 04:41 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
https://wiki.archlinux.org/index.php/swap
 
1 members found this post helpful.
Old 03-23-2014, 05:13 AM   #5
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
Thanks, syg00. "deleting the systemd-gpt-auto-generator, and adding its path to the NoExtract rule for pacman" looks like the best way to get rid of this behaviour. But there's no such package. Systemd is very complicated for me, can you please give me a hint on how to cut it out of the system? Just looking at editing units gives me a headache.
 
Old 03-23-2014, 06:26 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I haven't looked at Arch since they went to systemd, but the wiki is always excellent. I migh be inclined to use "systemctl | grep -i swap", then just use systemctl to stop the relevant unit.
 
Old 03-23-2014, 07:12 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
If indeed systemd is activating swap space that explicitly was manually disabled by root then I would consider that to be a bug and you should file a report upstream.
 
Old 03-23-2014, 09:14 AM   #8
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
The whole systemd is a bug and should be reported. But devs like bugs these days.
 
Old 03-23-2014, 10:17 AM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
If you don't like systemd it may be time to think about switching distros.
 
Old 03-23-2014, 11:20 AM   #10
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Maybe I'm just slow on the uptake, but if you have a swap partition, why disable it? And if you don't want swapping, why have a swap partition?
 
Old 03-23-2014, 01:45 PM   #11
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
If you don't like systemd it may be time to think about switching distros.
Are there any that won't ever switch to systemd?

Quote:
Originally Posted by DavidMcCann View Post
Maybe I'm just slow on the uptake, but if you have a swap partition, why disable it? And if you don't want swapping, why have a swap partition?
I have swap because several days ago I had just 2 GB of RAM. Now 4, and I was just playing with swap command. And noticed this behaviour during experimenting. I know I can remove swap partition but that's another question. I saw how my Linux box did something out of line, which I didn't expect.
 
Old 03-23-2014, 02:39 PM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by Mr. Alex View Post
Are there any that won't ever switch to systemd?
No one can say, maybe systemd is at some point inevitable, maybe (hopefully) it will fail before that before that point is reached. Don't get me wrong, I don't wish systemd to fail, if it would be just another init system I couldn't care less, but I think its IMHO cancerous nature will at one point bring it down. We can only hope that it doesn't do too much damage to the Linux ecosystem.

However, there are definitely distros that will avoid it as long as possible (like Slackware or CRUX) or that have it in their repositories, but offer alternatives (like Gentoo).
 
Old 03-24-2014, 01:08 PM   #13
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
The problem with systemd spreading very quickly is that more and more devs begin to write their software in a way when it interacts with systemd. Gentoo maintainers try to avoid this evil and they already have to fork some programs (what was it, "udev"?). If more and more programs will be written to work with systemd, at some point there will be no possible way for distros' maintainers to keep up with forks. If I think about it, I don't believe Gentoo won't give up and just go with the flow and switch to systemd in next 5 years.
 
Old 03-24-2014, 02:57 PM   #14
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Most programs don't have anything to do with systemd, luckily, it is mostly DEs/WMs that have to deal with it. The average file-manager, image manipulation software, text-editor, browser and other common software do not have to rely on systemd and it is likely that especially the larger programs for the sake of being platform independent will refuse to rely on it. The part where it might become gard to avoid systemd is that what is happening under the hood (booting, managing services, power-management, detecting and configuring hardware). We will see what happens.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Swap partition failing to activate, Jack not working and random system's hangs MSoresi Studio 13.37 7 10-03-2012 08:15 PM
unable to activate swap nick021 SUSE / openSUSE 2 02-15-2007 08:02 AM
Activate Swap Space - Suse 10 Install mindjet SUSE / openSUSE 3 04-09-2006 01:26 PM
activate swap on install ? waynep Linux - Newbie 5 02-17-2005 08:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration