Re: [systemd-devel] Improve boot-time of systemd-based device, revisited

2015-06-20 Thread cee1
2015-06-19 15:34 GMT+08:00 Chaiken, Alison : > cee1 writes: >> 3.1 "consider disabling readahead collection in the shipped devices, >> but leave readahead replay enabled." > > > ceel, are you aware that readahead is deprecated in systemd and has not been > included since about release 216? Some

Re: [systemd-devel] Improve boot-time of systemd-based device, revisited

2015-06-19 Thread Daniel Mack
On 06/19/2015 09:34 AM, Chaiken, Alison wrote: > ceel, are you aware that readahead is deprecated in systemd and has not > been included since about release 216? Some of us in automotive are > still working on it. I have some patches here > > https://github.com/chaiken/systemd-hacks/tree/pac

Re: [systemd-devel] Improve boot-time of systemd-based device, revisited

2015-06-19 Thread Chaiken, Alison
cee1 writes: 2. Add a kernel sockopt for AF_UNIX to increase the maximum datagram queue length for SOCK_DGRAM sockets. ceel, are you aware of the (hopefully) pending full merge of kdbus in kernel 4.2? And that it is essentially a bottoms-up redesign of IPC that supports the existing D-Bus

Re: [systemd-devel] Improve boot-time of systemd-based device, revisited

2015-06-18 Thread cee1
2015-06-14 21:17 GMT+08:00 cee1 : > Hi all, > > I've recently got another chance to improve the boot-time of a > systemd-based device. I'd like to share the experience here, and some > thoughts and questions. Two more articles about boot optimization: * http://freedesktop.org/wiki/Software/systemd

Re: [systemd-devel] Improve boot-time of systemd-based device, revisited

2015-06-16 Thread Kok, Auke-jan H
On Mon, Jun 15, 2015 at 5:44 AM, Harald Hoyer wrote: > On 14.06.2015 15:17, cee1 wrote: > > > BTW, systemd-bootchart has a option to chart entropy, how is the > > entropy involved in boot up procedure? > > Well, if daemons need bytes from /dev/random (think sshd key generation), I > guess they wi

Re: [systemd-devel] Improve boot-time of systemd-based device, revisited

2015-06-15 Thread Harald Hoyer
On 14.06.2015 15:17, cee1 wrote: > Hi all, > > I've recently got another chance to improve the boot-time of a > systemd-based device. I'd like to share the experience here, and some > thoughts and questions. > > The first time I tried to improve the boot-time of systemd: > http://lists.freedeskto

[systemd-devel] Improve boot-time of systemd-based device, revisited

2015-06-14 Thread cee1
Hi all, I've recently got another chance to improve the boot-time of a systemd-based device. I'd like to share the experience here, and some thoughts and questions. The first time I tried to improve the boot-time of systemd: http://lists.freedesktop.org/archives/systemd-devel/2011-March/001707.ht

Re: [systemd-devel] Improve boot-time of systemd

2011-04-20 Thread Tomasz Torcz
On Wed, Apr 20, 2011 at 02:43:36AM +0200, Lennart Poettering wrote: > On Fri, 18.03.11 13:40, Gustavo Sverzut Barbieri (barbi...@profusion.mobi) > wrote: > > > > > On Fri, Mar 18, 2011 at 10:52 AM, Andrey Borzenkov > > wrote: > > > On Fri, Mar 18, 2011 at 12:35 PM, fykc...@gmail.com > > > wr

Re: [systemd-devel] Improve boot-time of systemd

2011-04-19 Thread Lennart Poettering
On Wed, 30.03.11 02:28, fykc...@gmail.com (fykc...@gmail.com) wrote: > > 2011/3/29 Lennart Poettering : > > On Tue, 29.03.11 03:36, fykc...@gmail.com (fykc...@gmail.com) wrote: > >> To make boot fast, it seems udev's coldplug do too much jobs -- what I > >> expect is only coldplug local block dev

Re: [systemd-devel] Improve boot-time of systemd

2011-04-19 Thread Lennart Poettering
On Fri, 18.03.11 13:40, Gustavo Sverzut Barbieri (barbi...@profusion.mobi) wrote: > > On Fri, Mar 18, 2011 at 10:52 AM, Andrey Borzenkov wrote: > > On Fri, Mar 18, 2011 at 12:35 PM, fykc...@gmail.com > > wrote: > >> Hi all, > >> > >> We did a series boot-time tests of systemd, and found some

Re: [systemd-devel] Improve boot-time of systemd

2011-04-19 Thread Lennart Poettering
On Fri, 18.03.11 13:52, Andrey Borzenkov (arvidj...@mail.ru) wrote: > > I tried to create a hotplug.target(which is activated after > > default.target), and made udev-settle reside at it, this rendered a > > unbootable system. systemd depends on udev at early time. > > Thoughts: devtmpfs is mounte

Re: [systemd-devel] Improve boot-time of systemd

2011-04-19 Thread Lennart Poettering
On Fri, 18.03.11 09:35, fykc...@gmail.com (fykc...@gmail.com) wrote: > Hi all, > > We did a series boot-time tests of systemd, and found some interesting things: > (Note the tests were performed on a laptop with a 4-core mips cpu, AMD > RS780 chipset, 2GB Memory, rotate harddisk with ext4 filesys

Re: [systemd-devel] Improve boot-time of systemd

2011-03-29 Thread fykc...@gmail.com
2011/3/29 Lennart Poettering : > On Tue, 29.03.11 03:36, fykc...@gmail.com (fykc...@gmail.com) wrote: >> To make boot fast, it seems udev's coldplug do too much jobs -- what I >> expect is only coldplug local block devices and tty in that stage. >> This can save ~2s in my boot test. >> >> Is it pos

Re: [systemd-devel] Improve boot-time of systemd

2011-03-29 Thread Lennart Poettering
On Tue, 29.03.11 03:20, fykc...@gmail.com (fykc...@gmail.com) wrote: > 2011/3/28 Lennart Poettering : > > On Sun, 20.03.11 05:28, fykc...@gmail.com (fykc...@gmail.com) wrote: > >> Current readahead implementation has some problems: > >> 1. It can't separate *real* block read requests from all read

Re: [systemd-devel] Improve boot-time of systemd

2011-03-29 Thread Lennart Poettering
On Tue, 29.03.11 03:36, fykc...@gmail.com (fykc...@gmail.com) wrote: > > Hi Kay, > > 2011/3/28 Kay Sievers : > > On Fri, Mar 18, 2011 at 14:57, Kay Sievers wrote: > > > > Udev no longer enables udev-settle.service by default now. > > basic.target is no longer blocked by it, and udev's coldplug

Re: [systemd-devel] Improve boot-time of systemd

2011-03-28 Thread fykc...@gmail.com
Hi Kay, 2011/3/28 Kay Sievers : > On Fri, Mar 18, 2011 at 14:57, Kay Sievers wrote: > > Udev no longer enables udev-settle.service by default now. > basic.target is no longer blocked by it, and udev's coldplug will run > in the background. To make boot fast, it seems udev's coldplug do too much j

Re: [systemd-devel] Improve boot-time of systemd

2011-03-28 Thread fykc...@gmail.com
2011/3/28 Lennart Poettering : > On Sun, 20.03.11 05:28, fykc...@gmail.com (fykc...@gmail.com) wrote: >> Current readahead implementation has some problems: >> 1. It can't separate *real* block read requests from all read >> requests(which includes more blocks read by the kernel's readahead >> logi

Re: [systemd-devel] Improve boot-time of systemd

2011-03-28 Thread Kay Sievers
On Fri, Mar 18, 2011 at 14:57, Kay Sievers wrote: > On Fri, Mar 18, 2011 at 14:40, Gustavo Sverzut Barbieri >> But it could be improved yes. As you all said, maybe we should handle >> udev hotplug in a more throttled way by postponing non-critical >> devices and having everything else to be hotpl

Re: [systemd-devel] Improve boot-time of systemd

2011-03-28 Thread Lennart Poettering
On Thu, 24.03.11 10:20, Gustavo Sverzut Barbieri (barbi...@profusion.mobi) wrote: > On Thu, Mar 24, 2011 at 9:35 AM, Andrey Borzenkov wrote: > > On Thu, Mar 24, 2011 at 12:19 PM, fykc...@gmail.com > > wrote: > >> Hi, > >> > >> 2011/3/18 Gustavo Sverzut Barbieri : > >>>  2. should we do (or hav

Re: [systemd-devel] Improve boot-time of systemd

2011-03-28 Thread Lennart Poettering
On Sun, 20.03.11 05:28, fykc...@gmail.com (fykc...@gmail.com) wrote: > > 2011/3/19 Chen Jie : > > 2011/3/18 Kay Sievers : > >> > >> It's ~0.5 sec faster here with readahead on a SSD. > > Each time runs readahead-replay may cause readahead-collect to record > > more blocks to read ahead -- size of

Re: [systemd-devel] Improve boot-time of systemd

2011-03-28 Thread Lennart Poettering
On Sat, 19.03.11 06:05, Chen Jie (ch...@lemote.com) wrote: > > 2011/3/18 Kay Sievers : > > On Fri, Mar 18, 2011 at 14:40, Gustavo Sverzut Barbieri > > wrote: > >> On Fri, Mar 18, 2011 at 10:52 AM, Andrey Borzenkov > >> wrote: > >>> On Fri, Mar 18, 2011 at 12:35 PM, fykc...@gmail.com > >>> wr

Re: [systemd-devel] Improve boot-time of systemd

2011-03-24 Thread Greg KH
On Thu, Mar 24, 2011 at 10:20:38AM +, Gustavo Sverzut Barbieri wrote: > On Thu, Mar 24, 2011 at 9:35 AM, Andrey Borzenkov wrote: > > On Thu, Mar 24, 2011 at 12:19 PM, fykc...@gmail.com > > wrote: > >> Hi, > >> > >> 2011/3/18 Gustavo Sverzut Barbieri : > >>>  2. should we do (or have a way to

Re: [systemd-devel] Improve boot-time of systemd

2011-03-24 Thread Gustavo Sverzut Barbieri
On Thu, Mar 24, 2011 at 9:35 AM, Andrey Borzenkov wrote: > On Thu, Mar 24, 2011 at 12:19 PM, fykc...@gmail.com wrote: >> Hi, >> >> 2011/3/18 Gustavo Sverzut Barbieri : >>>  2. should we do (or have a way to) force a manual ordering to help >>> Xorg/DM/WM by avoiding spawn of concurrent services?

Re: [systemd-devel] Improve boot-time of systemd

2011-03-24 Thread Andrey Borzenkov
On Thu, Mar 24, 2011 at 12:19 PM, fykc...@gmail.com wrote: > Hi, > > 2011/3/18 Gustavo Sverzut Barbieri : >>  2. should we do (or have a way to) force a manual ordering to help >> Xorg/DM/WM by avoiding spawn of concurrent services? We know these >> have the higher priority, but it's a higher prio

Re: [systemd-devel] Improve boot-time of systemd

2011-03-22 Thread Gustavo Sverzut Barbieri
Any comments about these 2 points: On Fri, Mar 18, 2011 at 1:40 PM, Gustavo Sverzut Barbieri wrote: >>> 2. udev-settle.service serializes the boot process, see attachment >>> udev-settle.png. >> >> I have feeling that increased parallelism during boot (like starting >> fsck/mount as soon as devic

Re: [systemd-devel] Improve boot-time of systemd

2011-03-19 Thread fykc...@gmail.com
2011/3/19 Chen Jie : > 2011/3/18 Kay Sievers : >> >> It's ~0.5 sec faster here with readahead on a SSD. > Each time runs readahead-replay may cause readahead-collect to record > more blocks to read ahead -- size of "/.readahead" never reduces. > > Also I found "/.readahead" recorded files like ".xe

Re: [systemd-devel] Improve boot-time of systemd

2011-03-18 Thread Chen Jie
2011/3/18 Kay Sievers : > On Fri, Mar 18, 2011 at 14:40, Gustavo Sverzut Barbieri > wrote: >> On Fri, Mar 18, 2011 at 10:52 AM, Andrey Borzenkov wrote: >>> On Fri, Mar 18, 2011 at 12:35 PM, fykc...@gmail.com >>> wrote: > 1. What can readahead affect boot-time? Sadly observed negative

Re: [systemd-devel] Improve boot-time of systemd

2011-03-18 Thread Kay Sievers
On Fri, Mar 18, 2011 at 14:40, Gustavo Sverzut Barbieri wrote: > On Fri, Mar 18, 2011 at 10:52 AM, Andrey Borzenkov wrote: >> On Fri, Mar 18, 2011 at 12:35 PM, fykc...@gmail.com >> wrote: >>> 1. What can readahead affect boot-time? >>> Sadly observed negative affect -- boot-time increases at l

Re: [systemd-devel] Improve boot-time of systemd

2011-03-18 Thread Gustavo Sverzut Barbieri
On Fri, Mar 18, 2011 at 10:52 AM, Andrey Borzenkov wrote: > On Fri, Mar 18, 2011 at 12:35 PM, fykc...@gmail.com wrote: >> Hi all, >> >> We did a series boot-time tests of systemd, and found some interesting >> things: >> (Note the tests were performed on a laptop with a 4-core mips cpu, AMD >> R

Re: [systemd-devel] Improve boot-time of systemd

2011-03-18 Thread Andrey Borzenkov
On Fri, Mar 18, 2011 at 12:35 PM, fykc...@gmail.com wrote: > Hi all, > > We did a series boot-time tests of systemd, and found some interesting things: > (Note the tests were performed on a laptop with a 4-core mips cpu, AMD > RS780 chipset, 2GB Memory, rotate harddisk with ext4 filesystem, > debi