All of lore.kernel.org
 help / color / mirror / Atom feed
* [pseudo][PATCH 0/2] Implement async i/o and fast operations
@ 2026-11-23 22:27 Mark Hatle
  2026-11-23 22:27 ` [pseudo][PATCH 1/2] Send client requests over one shared datagram socket Mark Hatle
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mark Hatle @ 2026-11-23 22:27 UTC (permalink / raw)
  To: yocto-patches

These two were previously sent as an RFC.  A minor issue was discovered
in the previous implementation.  One a case insensitive filesystem it
had both _Exit.c and _exit.c which caused a conflict and problems.  The
implementation was updated to avoid this problem.

Yocto Project (wrynose) was used for testing, along with my layer
configuration.  For a build that had 32447 tasks, I prepopulated an
sstate-cache, then removed the rootfs and package related cache objects.

The build difference was 45 seconds, 17:30 down to 16:45.  I believe most
of the time was rootfs construction.  Offline testing showed a measurable
improvement when running some 40,000+ operations.  (This is on a 64 thread
Epyc w/ plenty of ram, so I expect a larger difference on slower hardware.)

I'm running additional performance benchmarks with buildstats, but this
is enough to send to give others a chance to comment.  I'll reply with
the buildstats info once I have it.

Mark Hatle (2):
  Send client requests over one shared datagram socket
  Replace FASTOP with requests that don't wait for a reply

 README.security                |   4 +-
 doc/overview                   |   6 +-
 doc/program_flow               |  11 ++
 doc/pseudo_ipc                 |  73 +++++++++--
 enums/msg_type.in              |   2 +-
 enums/op.in                    |  50 +++----
 ports/common/guts/_exit.c      |  16 +++
 ports/common/guts/execv.c      |   4 +
 ports/common/guts/execve.c     |   4 +
 ports/common/guts/execveat.c   |   4 +
 ports/common/guts/execvp.c     |   4 +
 ports/common/guts/execvpe.c    |   4 +
 ports/common/guts/fexecve.c    |   4 +
 ports/common/pseudo_wrappers.c |  24 ++++
 ports/common/wrapfuncs.in      |   1 +
 pseudo.1                       |  23 +++-
 pseudo.c                       |   2 +-
 pseudo.h                       |   1 +
 pseudo_client.c                | 230 ++++++++++++++++++++++++++-------
 pseudo_client.h                |   2 +
 pseudo_ipc.c                   |  42 ++++++
 pseudo_ipc.h                   |   8 ++
 pseudo_server.c                | 186 ++++++++++++++++++++++----
 pseudo_util.c                  |   1 +
 pseudo_wrappers.c              |  43 ++++++
 test/test-async-abort.c        |  48 +++++++
 test/test-async-abort.sh       |  40 ++++++
 test/test-async-order.c        | 188 +++++++++++++++++++++++++++
 test/test-async-order.sh       |  23 ++++
 29 files changed, 931 insertions(+), 117 deletions(-)
 create mode 100644 ports/common/guts/_exit.c
 create mode 100644 test/test-async-abort.c
 create mode 100755 test/test-async-abort.sh
 create mode 100644 test/test-async-order.c
 create mode 100755 test/test-async-order.sh

-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread
* [pseudo][PATCH 0/2] RFC: Fix/Add a fast path (async) IPC for ops
@ 2026-11-11  4:28 Mark Hatle
  2026-11-11  4:28 ` [pseudo][PATCH 2/2] Replace FASTOP with requests that don't wait for a reply Mark Hatle
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Hatle @ 2026-11-11  4:28 UTC (permalink / raw)
  To: yocto-patches

In the distant past a 'FASTOP' was implemented, but never actually worked
properly.

It was observed that a true fast op could be implemented using an async
calling mechanism, however this is implemented differently from the original
work.  The new work splits IPC channel into two parts.  Then the async calls
are handled as they can be, or forced before the next sync call.  This
ensures that all database operations are kept in sync.

Note, this work is on a separate branch as it needs a lot more review
before I would feel safe integrating it.  It's also not required to fix
any bugs, but simply should help with performance.

See the async-ipc branch of pseudo repository.

Mark Hatle (2):
  Send client requests over one shared datagram socket
  Replace FASTOP with requests that don't wait for a reply

 README.security                |   4 +-
 doc/overview                   |   6 +-
 doc/program_flow               |  11 ++
 doc/pseudo_ipc                 |  73 ++++++++++++--
 enums/msg_type.in              |   2 +-
 enums/op.in                    |  50 +++++-----
 ports/common/guts/_Exit.c      |  16 +++
 ports/common/guts/_exit.c      |  16 +++
 ports/common/guts/execv.c      |   4 +
 ports/common/guts/execve.c     |   4 +
 ports/common/guts/execveat.c   |   4 +
 ports/common/guts/execvp.c     |   4 +
 ports/common/guts/execvpe.c    |   4 +
 ports/common/guts/fexecve.c    |   4 +
 ports/common/pseudo_wrappers.c |  34 +++++++
 ports/common/wrapfuncs.in      |   2 +
 pseudo.1                       |  23 ++++-
 pseudo.c                       |   2 +-
 pseudo.h                       |   1 +
 pseudo_client.c                | 222 +++++++++++++++++++++++++++++++----------
 pseudo_client.h                |   2 +
 pseudo_ipc.c                   |  42 ++++++++
 pseudo_ipc.h                   |   8 ++
 pseudo_server.c                | 186 +++++++++++++++++++++++++++++-----
 pseudo_util.c                  |   1 +
 pseudo_wrappers.c              |  43 ++++++++
 test/test-async-abort.c        |  44 ++++++++
 test/test-async-abort.sh       |  40 ++++++++
 test/test-async-order.c        | 188 ++++++++++++++++++++++++++++++++++
 test/test-async-order.sh       |  23 +++++
 30 files changed, 946 insertions(+), 117 deletions(-)
 create mode 100644 ports/common/guts/_Exit.c
 create mode 100644 ports/common/guts/_exit.c
 create mode 100644 test/test-async-abort.c
 create mode 100755 test/test-async-abort.sh
 create mode 100644 test/test-async-order.c
 create mode 100755 test/test-async-order.sh

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-24  2:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 22:27 [pseudo][PATCH 0/2] Implement async i/o and fast operations Mark Hatle
2026-11-23 22:27 ` [pseudo][PATCH 1/2] Send client requests over one shared datagram socket Mark Hatle
2026-11-23 22:27 ` [pseudo][PATCH 2/2] Replace FASTOP with requests that don't wait for a reply Mark Hatle
2026-11-24  2:01 ` [yocto-patches] [pseudo][PATCH 0/2] Implement async i/o and fast operations Mark Hatle
  -- strict thread matches above, loose matches on Subject: below --
2026-11-11  4:28 [pseudo][PATCH 0/2] RFC: Fix/Add a fast path (async) IPC for ops Mark Hatle
2026-11-11  4:28 ` [pseudo][PATCH 2/2] Replace FASTOP with requests that don't wait for a reply Mark Hatle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.