[systemd-devel] Reduce unit-loading time

2015-05-13 Thread cee1
or a "compiled version"(containing resolved dependencies, or even the boot up sequence) -- Regards, - cee1 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Reduce unit-loading time

2015-05-15 Thread cee1
Original Message- >> From: systemd-devel [mailto:systemd-devel- >> boun...@lists.freedesktop.org] On Behalf Of cee1 >> Sent: Wednesday, May 13, 2015 11:52 AM >> To: systemd Mailing List >> Subject: [systemd-devel] Reduce unit-loading time >> >> Hi a

Re: [systemd-devel] Reduce unit-loading time

2015-05-18 Thread cee1
2015-05-17 17:45 GMT+08:00 Martin Pitt : > Hello cee, > > cee1 [2015-05-16 0:46 +0800]: >> Thanks for the suggestion, it was other processes running in parallel >> which presumably consuming lots of IO, after sending SIGSTOP at the >> first (and SIGCONT later), the uni

Re: [systemd-devel] Reduce unit-loading time

2015-05-18 Thread cee1
:00 Martin Pitt : > Hello cee1, > > cee1 [2015-05-18 18:24 +0800]: >> Does the readahead-*.service shipped with systemd work for you? > > systemd dropped the builtin readahead in 217. It's reasonably easy to > get back by reverting the "drop readahead" patche

[systemd-devel] Problem when m->finish_timestamp is set before running manager_loop

2015-05-18 Thread cee1
manager_check_finished(), which is in turn invoked in job_finish_and_invalidate() -- All these happens before the manager_loop running. -- Regards, - cee1 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/m

Re: [systemd-devel] Problem when m->finish_timestamp is set before running manager_loop

2015-05-19 Thread cee1
25fa6901f72c300b5980ada0ef44c5 > > Would be cool if you could check if this patch already fixes the issue > for you. It doesn't work :-( -- Regards, - cee1 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] Idea of splitting boot up logic from core

2015-05-20 Thread cee1
to meet the dependencies, and *** make the best schedule decision ***, e.g. If A is a much more dependent unit, do not start A with too many units in parallel -- Regards, - cee1 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org htt

Re: [systemd-devel] fsckd needs to go

2015-05-22 Thread cee1
___ > systemd-devel mailing list > systemd-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/systemd-devel Hey, Just mention it, we've implemented similar fsck progress report in LOonux3[1] several years ago. FYI: * http://lists.freedesktop.org/archive

Re: [systemd-devel] Problem when m->finish_timestamp is set before running manager_loop

2015-05-23 Thread cee1
2015-05-22 3:36 GMT+08:00 Lennart Poettering : > > Should be fixed in git. Please verify! Confirmed, thanks! -- Regards, - cee1 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/s

Re: [systemd-devel] Reduce unit-loading time

2015-05-24 Thread cee1
2015-05-20 1:01 GMT+08:00 Martin Pitt : > Hey cee1, > > cee1 [2015-05-18 23:52 +0800]: >> At the first glance, I find ureadahead has some difference compared >> with the readahead once in systemd, IIRC: > > Yes, for sure. systemd's was improved quite a bit. ureadahe

[systemd-devel] Questions about socket activated services

2015-05-30 Thread cee1
. """ unix 2 [ ACC ] SEQPACKET LISTENING 326 1/systemd /run/udev/control """ Curious why? -- Regards, - cee1 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.fr

[systemd-devel] What does udevd do

2015-05-30 Thread cee1
other device initialization stuffs. 2) Notifying systemd, let systemd start related daemons. Is it right? -- Regards, - cee1 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] What does udevd do

2015-05-30 Thread cee1
/acls/fix ownership create > symlinks and so on. That means ** all ** dev nodes are there when devtmpfs is mounted? I thought devtmpfs makes a limited number of nodes for early boot-up. -- Regards, - cee1 ___ systemd-devel mailing list systemd-dev

[systemd-devel] How many times is the root mounted in boot up?

2015-06-01 Thread cee1
by generators? -- Regards, - cee1 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] In what case will debugfs be mounted multi-times?

2015-06-04 Thread cee1
mount process exited, code=exited status=32 Jan 01 08:00:02 localhost systemd[1]: Failed to mount Debug File System. """ foo.service is a service with DefaultDependencies=no and Conflicts and Before shutdown.target So why the Debug File System is mounted multi-times here

Re: [systemd-devel] In what case will debugfs be mounted multi-times?

2015-06-13 Thread cee1
2015-06-09 18:10 GMT+08:00 Lennart Poettering : > On Thu, 04.06.15 23:41, cee1 (fykc...@gmail.com) wrote: >> So why the Debug File System is mounted multi-times here? Any idea? > > Hmm, my suspicion is that the file system might actually already be > mounted by the kernel the s

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

2015-06-14 Thread cee1
r readahead against the snapshot will always read ahead of actual requesting blocks. BTW, systemd-bootchart has a option to chart entropy, how is the entropy involved in boot up procedure? --- 1. http://linux-kernel.vger.kernel.narkive.com/0FC8rduf/ioprio-se

[systemd-devel] Why we need to read/save random seed?

2015-06-14 Thread cee1
Hi all, Why we need to read/save random seed? Can it be read from /dev/random each time? -- Regards, - cee1 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-15 Thread cee1
ed above 0, and as such, is currently the only HWRNG mixed into > /dev/random by default." > > > ___ > systemd-devel mailing list > systemd-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/systemd-devel > -- Regards, - cee1 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-16 Thread cee1
2015-06-16 0:21 GMT+08:00 Lennart Poettering : > On Mon, 15.06.15 23:33, cee1 (fykc...@gmail.com) wrote: > >> Hi, >> >> I maybe got confused. >> >> First, systemd-random-seed.service will save a "seed" from >> /dev/urandom when shutdown, and l

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread cee1
2015-06-17 16:40 GMT+08:00 Reindl Harald : > > Am 17.06.2015 um 05:06 schrieb cee1: >> >> 2015-06-16 0:21 GMT+08:00 Lennart Poettering : >>> >>> On Mon, 15.06.15 23:33, cee1 (fykc...@gmail.com) wrote: >>>> >>>> Hi, >>>> >

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread cee1
2015-06-17 22:03 GMT+08:00 Lennart Poettering : > On Wed, 17.06.15 20:21, cee1 (fykc...@gmail.com) wrote: >> >> What I means is: >> 1. Load a saved seed to /dev/urandom. >> 2. The service read /dev/random, which will block until kernel thinks >> there's e

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread cee1
;d be willing to take a patch for such a change. The type of this systemd-random-seed.service should be "notify", right? -- Regards, - cee1 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread cee1
2015-06-17 23:38 GMT+08:00 Reindl Harald : > > > Am 17.06.2015 um 17:08 schrieb cee1: >> >> 2015-06-17 22:03 GMT+08:00 Lennart Poettering : >>> >>> On Wed, 17.06.15 20:21, cee1 (fykc...@gmail.com) wrote: >>>> >>>> >>>> What

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://free

[systemd-devel] [PATCH][v1]random-seed: Save random seed as early as possible

2015-06-19 Thread cee1
not save a new seed. May not be the proper behavior? 2. The STATUS sent by the second and third sd_notify() are not shown in "systemctl status systemd-random-seed.service", need some kind of improvement. Please comment and give suggestions :) -- Regards, - cee1 0001-random-seed-Save

Re: [systemd-devel] [PATCH][v1]random-seed: Save random seed as early as possible

2015-06-20 Thread cee1
random-seed-load.service Both of the services use the same binary "systemd-random-seed" with different argv[1]("load" vs "save") Seems better than the patch v1, what do you think? 2015-06-19 21:34 GMT+08:00 cee1 : > Hi all, > > As discussed at > http://li

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 > inc

Re: [systemd-devel] [ANNOUNCE] systemd v221

2015-06-20 Thread cee1
urther ports and integrates some kernel libraries to libabc?? -- Regards, - cee1 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-28 Thread cee1
2015-06-15 0:43 GMT+08:00 Greg KH : > On Sun, Jun 14, 2015 at 12:49:55PM -0300, Cristian Rodríguez wrote: >> >> El jun. 14, 2015 10:21, "cee1" escribió: >> > >> > Hi all, >> > >> > Why we need to read/save random seed? Can it be re

[systemd-devel] [PATCH]fopen_temporary: close fd if fail

2015-07-08 Thread cee1
-- Regards, - cee1 0001-basic-util.c-fopen_temporary-close-fd-if-failed.patch Description: Binary data ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] possible message leak in bus->wqueue ?

2015-08-07 Thread cee1
n); return 0; } } """ If A __returns__ a result to B, but B has already died (After sending a "method call" message): 1. It will return ENXIO or ESRCH, right? 2. dispatch_wqueue(), bus_write_message

[systemd-devel] Incorrect use return value of mount_one in mount_setup_early/mount_setup?

2015-09-14 Thread cee1
all of mount_one will *NOT* be detected(since r == 1). Is this the expected behavior? -- Regards, - cee1 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] Callback of sd_bus_track: when it will be invoked

2015-01-29 Thread cee1
Hi all, I notice in sd_bus_track_new, a callback can be specified, but when it will be invoked? It seems it will not be triggered when a name in track is removed. -- Regards, - cee1 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

[systemd-devel] Some thoughts about loop_read/loop_write in util.c

2013-09-11 Thread cee1
here, e.g. We can try to read 0 bytes when pollfd.revents != POLLIN. The same with loop_write. -- Regards, - cee1 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Some thoughts about loop_read/loop_write in util.c

2013-09-11 Thread cee1
ssize_t loop_write(int fd, const void *buf, size_t nbytes, bool do_poll) { return n > 0 ? n : -errno; } +/* if (pollfd.revents != POLLOUT) return n &g

Re: [systemd-devel] Some thoughts about loop_read/loop_write in util.c

2013-09-12 Thread cee1
2013/9/12 Lennart Poettering : > On Thu, 12.09.13 09:43, cee1 (fykc...@gmail.com) wrote: > >> What about the following patch? It simply do read/write again if poll >> returns, and let read/write report error if something is wrong. > > I guess that patch makes sense, but co

[systemd-devel] [PATCH] util.c: ignore pollfd.revent for loop_read/loop_write

2013-09-22 Thread cee1
Let read()/write() report any error/EOF. --- src/shared/util.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/shared/util.c b/src/shared/util.c index 2009553..3c08650 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -2186,8 +2186,10 @@ ssize_t loop_re

Re: [systemd-devel] [PATCH] util.c: ignore pollfd.revent for loop_read/loop_write

2013-09-28 Thread cee1
2013/9/26 Zbigniew Jędrzejewski-Szmek : > On Sun, Sep 22, 2013 at 09:10:47PM +0800, cee1 wrote: >> Let read()/write() report any error/EOF. > This look OK, but can you provide a bit of motivation? It's a re-sent patch, the original thread is at http://lists.freedesktop.org/archi

[systemd-devel] Idea about improving boot-up status report

2013-02-11 Thread cee1
boot-up). It would be better if Systemd could timely report which units are still starting. E.g. we limit the max starting units meanwhile(which may improve boot performance). When blocked, tell plymouth which units are started and which units are still starting of the current batch. Any ideas?

[systemd-devel] How to debug crash of systemd

2013-02-11 Thread cee1
/maps, more: https://github.com/cee1/systemd/commit/89d049507734746f6f1100218ca97cc829b05e0a * Has anyone tried the crash shell? I added a custom sysrq which will send SEGV to init, hence triggered the crash(). According to the log, crash shell was called and exited immediately. -- Regards, -

Re: [systemd-devel] How to debug crash of systemd

2013-02-13 Thread cee1
在 2013年2月13日星期三,Lennart Poettering 写道: > On Tue, 12.02.13 13:43, cee1 (fykc...@gmail.com ) wrote: > > > Hi all, > > > > systemd will call crash() if received fatal signals. It will produce a > > core dump for analysis. > > However, it seems signal handler

[systemd-devel] Question about plymouth-quit.service

2011-10-10 Thread cee1
ystem/plymouth-quit.service Then, how does it notify plymouth boot splash to quit? Also I noticed prefdm.service has relations with plymouth-quit.service: Conflicts=plymouth-quit.service After=plymouth-quit.service What does that mean? -- Regards, -