LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-17-2014, 04:11 PM   #61
Arkerless
Member
 
Registered: Mar 2006
Distribution: Give me Slack or give me death.
Posts: 81

Rep: Reputation: 60

Quote:
Originally Posted by a4z View Post
both true for a lot of places, but in reality I see more and more 'out of the box' embedded installations.
systemd has already a layer in openembedded, and I expect to see it in real on embedded devices soon.
when Ubuntu switches, Linaro builds will come with systemd, and these systems come with a lot of BSPs.
It's maddening seeing badly misconfigured linux coming pre-installed when the cost of doing it right would be minimal. My eeePc was like that, they put so much money into design, manufacture, marketing, but shipped a nearly unaltered version of some Debian knock off that was so badly misconfigured it made my teeth cry. It's no wonder it did not sell well, it was junk as shipped. A few hours of work and it was wonderful! Slackware base, a minimal window manager, and virtual memory ON (obviously configured by someone who only knew windows and thought virtual memory==hard drive thrashing) and the thing ran wonderfully. But how many buyers ever saw it properly configured?

And of course their market failure was because linux sucked. NOT because this huge multinational corporation could not be bothered to hire a competent linux guy to spend a week configuring their distribution so it would work acceptably on their hardware, no.
 
3 members found this post helpful.
Old 05-18-2014, 04:41 PM   #62
briselec
Member
 
Registered: Jun 2013
Location: Ipswich, Australia
Distribution: Slackware
Posts: 74

Rep: Reputation: Disabled
Quote:
Originally Posted by a4z View Post
both true for a lot of places, but in reality I see more and more 'out of the box' embedded installations.
I agree. It used to be the hardware was custom designed to do the job at the lowest price but I can see the end of doing it that way. Look at the PRUSS unit in the Cortex A8. It makes it so versatile. You can grab a Beaglebone Black off the shelf for around $50 and use it to replace an industrial computer with a high speed I/O card that would cost a few thousand. And thanks to Linus getting fed up with the constant changes required for ARM devices we now have device tree support in the kernel. As long as 2 boards with completely different I/O use the same processor family you can use the the same linux install. The only thing different are the device tree files.

When I refer to fast boot times, I'm thinking around 1 second or less. You won't get that just by not using an initrd. In an industrial environment a slow bootup makes a noticeable difference. Safety is a big issue these days and a safety system is like Windows - it has to be designed for the dumbest possible user. (which is why I don't agree with people who want to see Linux on every desktop. Let Windows and Android cater for that).
Which means most safety policies require a full lock out of the whole machine. Shut it down, work on it, boot it up and test, shut it down again..... really annoying and costly when boot times are longer than a few seconds.

So for Linux to be a serious contender in the industrial and embedded world, a fast boot time is a requirement.
At the moment systemd is helping provide that but is that what we want to be stuck with? I don't. Lennart's way of doing things doesn't bear well with me.
 
Old 05-18-2014, 06:47 PM   #63
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
The problem with init is always going to be time to initialize all the hardware and services correctly. In that you have the dilemma of time versus correctness. In the end regardless of how much speed you try to introduce to shave off time, correctness always has to be a constant variable. Either it's correct or it's inoperable.
 
Old 05-18-2014, 09:10 PM   #64
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
When I refer to fast boot times, I'm thinking around 1 second or less. You won't get that just by not using an initrd.
No, you do that by replacing the kernels init function with one for the specific application.
 
1 members found this post helpful.
Old 05-19-2014, 01:06 PM   #65
fatalfrrog
Member
 
Registered: May 2011
Distribution: Slackware
Posts: 57

Rep: Reputation: 31
You guys are seriously still talking about boot times? systemd does so much more than provide a faster boot. It's secondary to what it really aims to provide.

Check out how Pantheon patched Heartbleed for 60,000+ sites. Containers and systemd work very well together - it's no wonder Red Hat is getting involved with Docker.
 
Old 05-19-2014, 01:47 PM   #66
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by fatalfrrog View Post
You guys are seriously still talking about boot times? systemd does so much more than provide a faster boot. It's secondary to what it really aims to provide.
It is also so much more complicated than what needs to be reliable.

That is why it still hangs somestimes on boot or shutdown, and doesn't do what needs to be done, and forces awkward interdependencies.
 
2 members found this post helpful.
Old 05-19-2014, 06:25 PM   #67
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Quote:
Originally Posted by fatalfrrog View Post
systemd does so much more than provide a faster boot. It's secondary to what it really aims to provide.
That is the problem. PID 1 should not do that.
 
Old 05-19-2014, 06:45 PM   #68
Arkerless
Member
 
Registered: Mar 2006
Distribution: Give me Slack or give me death.
Posts: 81

Rep: Reputation: 60
Quote:
Originally Posted by fatalfrrog View Post
You guys are seriously still talking about boot times? systemd does so much more than provide a faster boot. It's secondary to what it really aims to provide.
Yeah, that's really part of the problem, as others have indicated. PID1 is not the place to do all the other stuff systemd does. Some of it may well be good stuff to do, just not in the initial process.

The fallacy here is that you need systemd, specifically, to do this. You dont.

Patching a running daemon on running servers is a very old problem and it's almost embarrassing how they seem to be genuinely proud they pulled it off without a reboot. Which brings up a delicate point I hesitate to mention, but so much of what they are doing appears to be NIH syndrome from people whose education focused on Windows rather than Unix. Problems that Unix solved decades ago are perceived as new and unsolved, and the new 'solutions' always seem to involve more than a little "windows does it like this."

Replacing text files that can be manipulated using very robust and mature tools we have all spent a significant portion of our life mastering and replacing them with a binary file only editable using new, immature tools developed and controlled by a central source, hmmm, where have I seen that before?
 
4 members found this post helpful.
Old 05-19-2014, 08:33 PM   #69
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 jtsn View Post
That is the problem. PID 1 should not do that.
Quote:
Originally Posted by Arkerless View Post
Yeah, that's really part of the problem, as others have indicated. PID1 is not the place to do all the other stuff systemd does. Some of it may well be good stuff to do, just not in the initial process.
Not that again. Only very few things done by systemd run in PID1.

Last edited by TobiSGD; 05-19-2014 at 08:34 PM.
 
Old 05-19-2014, 08:35 PM   #70
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 Arkerless View Post
Replacing text files that can be manipulated using very robust and mature tools we have all spent a significant portion of our life mastering and replacing them with a binary file only editable using new, immature tools developed and controlled by a central source, hmmm, where have I seen that before?
Can you elaborate on that?
 
Old 05-19-2014, 08:49 PM   #71
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by TobiSGD View Post
Can you elaborate on that?
It is a very old solution... its called "mv".

Nearly all the installation tools use it...
1. install new file as file.new
2. rename current file to file.old
3. rename file.new to file.

Or use a hard link (which is actually faster...)

1. install new file
2. remove link.
3. create link to new file.

In the VERY old days you had to use the first method with shared libraries as well. The reason you had to keep the file.old was that current processes might be using it, and if you deleted it then those processes could get a segfault.

Linux filesystems don't actually care - if a process is using a shared library the in-memory inode carries a reference count, removing the link from a directory doesn't delete the file (which only decrements the in memory link count, and removes the name from the directory). The file isn't deleted until the link count goes to zero...

This solution goes back to SunOS 2.xx days, around 1985.
 
3 members found this post helpful.
Old 05-19-2014, 09:15 PM   #72
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I still laugh at how people say BSD/SysVinit is slow to load.

Learn to do dependency based foreground style tree loading of resources, move non-required startups of certain unessential background services like Icon updates to cron-jobs, disable unused daemons, and SysVinit used properly is actually quite fast.
 
1 members found this post helpful.
Old 05-19-2014, 09:35 PM   #73
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
Does anyone know about a distro Arch-like but with no systemd?
 
Old 05-19-2014, 09:56 PM   #74
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
CRUX.
 
Old 05-20-2014, 01:51 AM   #75
hendrickxm
Member
 
Registered: Feb 2014
Posts: 344

Rep: Reputation: Disabled
Quote:
Originally Posted by moisespedro View Post
Does anyone know about a distro Arch-like but with no systemd?
There is work done by a few guys at archbang to replace systemd with either bootscripts and eudev, runit and eudev or openrc en eudev.
Here is a link to a subforum on that:
http://bbs.archbang.org/viewforum.php?id=26
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Systemd Is The Future Of Debian LXer Syndicated Linux News 1 02-11-2014 03:09 PM
It seems that in future Linux kernel itself will force the use of systemd blancamolinos Slackware 25 11-07-2013 02:38 PM
[SOLVED] systemd and Slackware's future kikinovak Slackware 95 07-14-2012 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:41 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