Gentoo Archives: gentoo-soc

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-soc@l.g.o
Subject: Re: [gentoo-soc] Openrc performance improvement
Date: Tue, 17 Mar 2020 20:12:45
Message-Id: robbat2-20200317T185552-208358180Z@orbis-terrarum.net
In Reply to: [gentoo-soc] Openrc performance improvement by Manjeet Singh
1 On Wed, Mar 18, 2020 at 04:35:47AM +0530, Manjeet Singh wrote:
2 > My name is Manjeet Singh, I am a 3rd year CSE student from Guru Gobind
3 > Singh Indraprastha University, Delhi, India
4 >
5 > for my GSOC 2020 I want to work on Openrc init system of Gentoo by
6 > improving its performance. Currently openrc is using a lot of tools and
7 > processes to start a simple service scripts (POSIX shell,
8 > start-stop-daemon, rc-depends, rc-sstat...) and use shell to parse init
9 > scripts. these things make openrc slow to start services and result in slow
10 > bootup, so idea is to develop some native tools for openrc that will parse
11 > the service scripts files, check prerequisites, start services daemons or
12 > commands.
13 >
14 > I used openrc under gentoo, and setup it on arch, void and lfs, and found
15 > it really awesome (i don't like systemd) and found openrc a better
16 > alternative of systemd. Also i already a simple and minimal service manager
17 > like tool that will parse a service file in INI format and start or stop a
18 > service. I will now trying to developed some similar tools for openrc to
19 > boost its performance and i found gsoc 2020 a better way to interact with
20 > this organization and develop this tools under proper guidance.
21 >
22 > any further guidelines about the possibilities and issue will be very
23 > helpful
24 > Thanks for the time and consideration
25 Before you can meaningfully improve it, you need to be able to measure
26 what you hope to change.
27
28 I'm not entirely convinced that openrc per se is slow: as a whole
29 however, it certainly the overall feeling that speedups could be
30 achieved.
31
32 That said, I feel like a lot of this project would be towards the prior
33 efforts in boot speedup in Gentoo:
34 - bootchart updates
35 - readahead-list
36 - see the source code on using audit system to capture more details
37 - openrc parallelization
38 - review of init script dependencies / slimming
39
40 Some of these were connected to previous GSOC efforts, so there's
41 certainly value here.
42
43 - Aim to measure the performance in a repeatable way (probably spin up
44 VMs repeatedly with as few external dependencies as possible)
45 - Instrument where that performance is actually slow
46 - Fix those parts
47
48 I'm not sure everything here could be achieved in one GSOC season, but
49 certainly the effort should probably be on the measurement &
50 instrumentation, rather than the fixing for the moment.
51
52 --
53 Robin Hugh Johnson
54 Gentoo Linux: Dev, Infra Lead, Foundation Treasurer
55 E-Mail : robbat2@g.o
56 GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
57 GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-soc] Openrc performance improvement Manjeet Singh <itsmanjeet1998@×××××.com>