Date: Thu, 10 Jan 2013 09:38:54 +0200 From: Konstantin Belousov <kostikbel@gmail.com> To: Alfred Perlstein <bright@mu.org> Cc: Daniel Eischen <deischen@freebsd.org>, hackers@freebsd.org, Jason Evans <jasone@freebsd.org> Subject: Re: malloc+utrace, tracking memory leaks in a running program. Message-ID: <20130110073854.GQ2561@kib.kiev.ua> In-Reply-To: <50EE6630.2010902@mu.org> References: <50D52B10.1060205@mu.org> <A0AD197D-B72D-4FF5-B9AF-5E4F2AAAA421@freebsd.org> <50EE6281.7030602@mu.org> <50EE6630.2010902@mu.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Thu, Jan 10, 2013 at 01:56:48AM -0500, Alfred Perlstein wrote: > Here are more convenient links that give diffs against FreeBSD and > jemalloc for the proposed changes: > > FreeBSD: > https://github.com/alfredperlstein/freebsd/compare/13e7228d5b83c8fcfc63a0803a374212018f6b68~1...utrace2 > Why do you need to expedite the records through the ktrace at all ? Wouldn't direct write(2)s to a file allow for better performance due to not stressing kernel memory allocator and single writing thread ? Also, the malloc coupling to the single-system interface would be prevented. I believe that other usermode tracers also behave in the similar way, using writes and not private kernel interface. Also, what /proc issues did you mentioned ? There is sysctl kern.proc.vmmap which is much more convenient than /proc/pid/map and does not require /proc mounted. > jemalloc: > https://github.com/alfredperlstein/jemalloc/compare/master...utrace2 > > -Alfred > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJQ7nANAAoJEJDCuSvBvK1BI0YP/3luZYesC/OpGaRrMZrBXBZK qjra23pzuMZ1FDXY72b1duogO7aV91VviBNFzE7eJLzeTN62W/1kN3PoSyIBJW5P T+cekDyUBiYb4xGuoTVM2/B+rdy1sCsklIWalN38F4PbfyJeEpOwiwYRXQ8TL7l/ YyTNquB79+yadDRQv8okcQFs38gAMNVzaYgphtTNCK3xQKM/s5hG3Kt5Tw3JNHqI lH/qAJiSqaZIQBqjQyYVtqq9WxHjC3rSDTCdEt8rtv4Exw2LwHMKNOUcNjQ0lq0F v9FblY5IrPbbx8lVToNNu2bmm2smqA3AuHMDrYDZSOLbJB1wYMZ7S0bhmUMXtx62 0ujnlThltm5uc042DGWVBCzdrMxkG6orFDo8IZlNK7aPIl/froL/iaNfS7jLcEVi TouSVgmjSS8fPFvvIBlN1Y0iKJoKNTchvUzOtvnyw40YY1fZ3XfStAez7ocKsfmC MBSXv8m7b8GCjIRfAdpNol3fOq6SS0IMyHxlBQOVfkVXgBMLn2A/0rkSpc4/uScd c0HdutalMUYGZtCoku9aOgaKB+mtY4e06qxQh02H6y/0EZPbQjMgBju048qqSdRq FFlhomrChC/tnee6X6G4Gma3BcBh1EKYfnfHiEhD16KZE4AWsTsBL6mgGvArMl7r P/Ssw7jQG3bb5l1Qp4LQ =ZoGY -----END PGP SIGNATURE-----help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130110073854.GQ2561>
