mwrap user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 1/2] httpd: add notes about arenas and object heaps
  2023-01-09  6:21  6% [PATCH 0/2] refining the httpd interface Eric Wong
@ 2023-01-09  6:21  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2023-01-09  6:21 UTC (permalink / raw)
  To: mwrap-public

We don't users being confused if an innocuous-looking
line of code allocates unnexpectedly large values.
---
 ext/mwrap/httpd.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/ext/mwrap/httpd.h b/ext/mwrap/httpd.h
index 17fb187..fe4fe2f 100644
--- a/ext/mwrap/httpd.h
+++ b/ext/mwrap/httpd.h
@@ -600,7 +600,12 @@ static enum mw_qev each_at(struct mw_h1 *h1, struct mw_h1req *h1r)
 				size, h->as.live.gen, h->real);
 	}
 	rcu_read_unlock();
-	FPUTS("</table></body></html>", fp);
+	FPUTS("</table><pre>\nNotes:\n"
+"* 16344-byte (64-bit) or 16344-byte (32-bit) allocations in\n"
+"  Ruby &lt;= 3.0 aligned to 0x4000 are likely for object heap slots.\n"
+"* 4080-byte allocations in Perl 5 are likely for arenas\n"
+"  (set via the PERL_ARENA_SIZE compile-time macro)"
+"</pre></body></html>", fp);
 	return h1_200(h1, &html, TYPE_HTML);
 }
 

^ permalink raw reply related	[relevance 7%]

* [PATCH 0/2] refining the httpd interface
@ 2023-01-09  6:21  6% Eric Wong
  2023-01-09  6:21  7% ` [PATCH 1/2] httpd: add notes about arenas and object heaps Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2023-01-09  6:21 UTC (permalink / raw)
  To: mwrap-public

Being edumacational :P

Eric Wong (2):
  httpd: add notes about arenas and object heaps
  httpd: add CSV download link to /each/$MIN HTML

 ext/mwrap/httpd.h | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

^ permalink raw reply	[relevance 6%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2023-01-09  6:21  6% [PATCH 0/2] refining the httpd interface Eric Wong
2023-01-09  6:21  7% ` [PATCH 1/2] httpd: add notes about arenas and object heaps Eric Wong

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

	https://80x24.org/mwrap.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).