port memory usage tests to windows #54
Labels
No Label
0.2.0
0.3.0
0.4.0
0.5.0
0.5.1
0.6.0
0.6.1
0.7.0
0.8.0
0.9.0
1.0.0
1.1.0
1.10.0
1.10.1
1.10.2
1.10a2
1.11.0
1.12.0
1.12.1
1.13.0
1.14.0
1.15.0
1.15.1
1.2.0
1.3.0
1.4.1
1.5.0
1.6.0
1.6.1
1.7.0
1.7.1
1.7β
1.8.0
1.8.1
1.8.2
1.8.3
1.8β
1.9.0
1.9.0-s3branch
1.9.0a1
1.9.0a2
1.9.0b1
1.9.1
1.9.2
1.9.2a1
LeastAuthority.com automation
blocker
cannot reproduce
cloud-branch
code
code-dirnodes
code-encoding
code-frontend
code-frontend-cli
code-frontend-ftp-sftp
code-frontend-magic-folder
code-frontend-web
code-mutable
code-network
code-nodeadmin
code-peerselection
code-storage
contrib
critical
defect
dev-infrastructure
documentation
duplicate
enhancement
fixed
invalid
major
minor
n/a
normal
operational
packaging
somebody else's problem
supercritical
task
trivial
unknown
was already fixed
website
wontfix
worksforme
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Reference: tahoe-lafs/trac-2024-07-25#54
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Make the following also work on Windows: Measure the memory usage in different operations (upload, download, sustained server operation, ...) and graph it with a munin plugin. (Issue #29)
Attachment thread628262.html (57027 bytes) added
tips and tricks for measuring CPU and RAM on Windows
See #29 for the general memory-usage tests and fixing the memory-usage problems.
memory usage teststo port memory usage tests to windowsbumping this issue out of the v0.6.1 milestone because there are too many other more urgent things for this milestone
If you love this ticket (#54), then you might like tickets #227 (our automated memory measurements might be measuring the wrong thing), #419 (pycryptopp uses up too much RAM), #478 (add memory-usage to stats-provider numbers), and #97 (reducing memory footprint in share reception).
Attachment memcheck-win32.diff (4842 bytes) added
Here is a patch proposal. It also makes "make check-memory" works under MinGW, with or without installed Twisted.
The "VmData" value doesn't seems to have any equivalence in GetProcessMemoryInfo() nor any use in current code, so might be stripped out.
Comments on the patch:
try:
block will cause the values to be left at zero, but on Windows a failure will propagate the exception. Make it consistent.Replying to davidsarah:
Seems like a suitable place would be
find_exe.find_twistd
.Grumpf: thank you for the patch!
So let's see, since David-Sarah's review indicated that this patch isn't ready to be committed then we should unset the
reviewed
keyword, right? By the way, http://allmydata.org/trac/pyutil/browser/pyutil/pyutil/memutil.py would be an ideal place for this functionality to live, eventually, but this doesn't directly help Tahoe-LAFS until and unless #47 (use pyutil as a separate package and contribute src/allmydata/util/* into pyutil) is closed.Okay unsetting
reviewed
and assigning it to Grumpf to write a patch that fixes the issues raised by David-Sarah. Grumpf: I think David-Sarah is right that using source:src/allmydata/util/find_exe.py is a good way to do the "find twistd" behavior.Oh sorry, I didn't read your patch and see that you were already using
find_exe
. I guess the code duplication that David-Sarah was talking about was the part that comes afterfind_exe
about looking for an executable that was installed in./support
relative to the basedir.It is the code in source:src/allmydata/control.py which could potentially be merged with the comparable code in http://allmydata.org/trac/pyutil/browser/pyutil/pyutil/memutil.py .
Grumpf: if you are going to work on this patch then please "accept" this ticket (using the control panel at the bottom of this page). If you don't then anyone else should feel free to update the patch to fix the details noted by David-Sarah's review.