From: Eric Wong <e@80x24.org>
To: meta@public-inbox.org
Subject: netd/httpd memory usage
Date: Wed, 7 Dec 2022 21:20:13 +0000 [thread overview]
Message-ID: <20221207212013.GA25466@dcvr> (raw)
While memory use has mostly gotten under control with scratchpad
avoidance done around Sep (after v1.9.0), it's still higher than
I like :<
Suspiciously, PublicInbox::Smsg::load_from_data still seems to
be causing a big chunk of long-lived allocations on my system:
sub load_from_data ($$) {
my ($self) = $_[0]; # data = $_[1]
utf8::decode($_[1]);
(
$self->{subject},
$self->{from},
$self->{references},
# To: and Cc: are stored to optimize HDR/XHDR in NNTP since
# some NNTP clients will use that for message displays.
# NNTP only, and only stored in Over(view), not Xapian
$self->{to},
$self->{cc},
$self->{blob},
$self->{mid},
# NNTP only
$self->{bytes},
$self->{lines}
) = split(/\n/, $_[1]);
}
I'm only on Perl 5.28.1, and looking at Perl 5.3x deltas I see
see some regexp-related leak fixes, perhaps an upgrade will fix
it...
(or work on https://80x24.org/mwrap-perl.git to expand into C
backtraces is required...)
Of course, even single-threaded git packing is using massive memory
use with the linux.git forkgroup :<
next reply other threads:[~2022-12-07 21:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-07 21:20 Eric Wong [this message]
2022-12-16 23:25 ` netd/httpd memory usage Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221207212013.GA25466@dcvr \
--to=e@80x24.org \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).