user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH] t/git-http-backend: disable worker processes
@ 2019-10-10 18:55  7% Eric Wong
  0 siblings, 0 replies; 3+ results
From: Eric Wong @ 2019-10-10 18:55 UTC (permalink / raw)
  To: meta

We want to ensure we run lsof(8) on the worker (if needed),
and not the master, which doesn't serve requests.

This was originally on top of a test-only patch in
https://public-inbox.org/meta/20190913015043.17149-1-e@80x24.org/
In any case, no point in spawning extra processes for this test.
---
 t/git-http-backend.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/git-http-backend.t b/t/git-http-backend.t
index 1d9bb9f3..c2a04653 100644
--- a/t/git-http-backend.t
+++ b/t/git-http-backend.t
@@ -44,7 +44,7 @@ my $get_maxrss = sub {
 
 {
 	ok($sock, 'sock created');
-	my $cmd = [ $httpd, "--stdout=$out", "--stderr=$err", $psgi ];
+	my $cmd = [ $httpd, '-W0', "--stdout=$out", "--stderr=$err", $psgi ];
 	ok(defined($pid = spawn_listener(undef, $cmd, [$sock])),
 	   'forked httpd process successfully');
 }

^ permalink raw reply related	[relevance 7%]

* Re: httpd 502s [was: trying to figure out 100% CPU usage in nntpd...]
  @ 2019-09-13  9:01  4%                   ` Eric Wong
  0 siblings, 0 replies; 3+ results
From: Eric Wong @ 2019-09-13  9:01 UTC (permalink / raw)
  To: Konstantin Ryabitsev; +Cc: meta

Eric Wong <e@80x24.org> wrote:
> # unrelated note: there's 4 pipes from -W1 (the default),
> # but I think 2 can be closed, actually...

Nevermind on the extra pipes, I was running lsof on the master :x.
"[RFC 2/1] t/git-http-backend: disable worker processes"
cuts it down to a single process (no master/worker distinction)
so lsof is seeing the right pid.

> GIANT_GIT_DIR=/path/to/git.git MANY_CLONE=1 prove -lv t/git-http-backend.t

And now no pipes are visible at all, so either that test can't
trigger it, or neither of the systems I'm testing on can't trigger
it...

^ permalink raw reply	[relevance 4%]

* [RFC 2/1] t/git-http-backend: disable worker processes
  @ 2019-09-13  8:57  7% ` Eric Wong
  0 siblings, 0 replies; 3+ results
From: Eric Wong @ 2019-09-13  8:57 UTC (permalink / raw)
  To: meta

We want to ensure we run lsof(8) on the worker, and not the
master, which doesn't serve requests.
---
 t/git-http-backend.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/git-http-backend.t b/t/git-http-backend.t
index d9b33bad..7d10c720 100644
--- a/t/git-http-backend.t
+++ b/t/git-http-backend.t
@@ -44,7 +44,7 @@ my $get_maxrss = sub {
 
 {
 	ok($sock, 'sock created');
-	my $cmd = [ $httpd, "--stdout=$out", "--stderr=$err", $psgi ];
+	my $cmd = [ $httpd, '-W0', "--stdout=$out", "--stderr=$err", $psgi ];
 	ok(defined($pid = spawn_listener(undef, $cmd, [$sock])),
 	   'forked httpd process successfully');
 }

^ permalink raw reply related	[relevance 7%]

Results 1-3 of 3 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2019-09-10 18:12     trying to figure out 100% CPU usage in nntpd Eric Wong
2019-09-11  2:22     ` httpd 502s [was: trying to figure out 100% CPU usage in nntpd...] Eric Wong
2019-09-11 10:24       ` Konstantin Ryabitsev
2019-09-11 17:12         ` Eric Wong
2019-09-11 17:36           ` Konstantin Ryabitsev
2019-09-12  0:05             ` Eric Wong
2019-09-12  2:49               ` Eric Wong
2019-09-12  8:35                 ` Eric Wong
2019-09-12 11:37                   ` Konstantin Ryabitsev
2019-09-13  3:12                     ` Eric Wong
2019-09-13  9:01  4%                   ` Eric Wong
2019-09-13  1:50     [RFC] t/git-http-backend: add MANY_CLONE test Eric Wong
2019-09-13  8:57  7% ` [RFC 2/1] t/git-http-backend: disable worker processes Eric Wong
2019-10-10 18:55  7% [PATCH] " Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).