Better HN
topnewbestaskshowjobs
Log inSign up

hellowub

37 karma · joined Jun 8, 2016 (10y ago) · 18 submissions

Submissions

comment 1y ago · link · parent

Although there are already some decimal crates also claim to be fixed-point, such as `bigdecimal`, `rust_decimal` and `decimal-rs`, they all bind the scale to each decimal instance, which changes during operations. They're more like floating point.

This crate primitive_fixed_point_decimal provides real fixed-point decimal types.

2.

A real fixed-point decimal crate in Rust(github.com ↗)

11 points · by hellowub · 1y ago · 1 comment

3.

Build a Lua Interpreter in Rust(wubingzheng.github.io ↗)

2 points · by hellowub · 3y ago · discuss

4.

Phorklift, another HTTP server and proxy daemon(github.com ↗)

1 points · by hellowub · 5y ago · discuss

5.

Another memory leak debugger by LD_PRELOAD(github.com ↗)

1 points · by hellowub · 8y ago · discuss

6.

Libfixdec is a lightweight decimal library with fixed point and precision(github.com ↗)

1 points · by hellowub · 8y ago · discuss

7.

Memleax releases new version to support x86, armv7, and aarch64(github.com ↗)

2 points · by hellowub · 9y ago · discuss

comment 10y ago · link · parent

Glad to hear this.

9.

Lightweight HTTP cache, based on file, suitable for CDN especially(github.com ↗)

2 points · by hellowub · 10y ago · 1 comment

comment 10y ago · link · parent

Thanks. Any advice is welcomed.

comment 10y ago · link · parent

I submitted my project here before when I just wrote it out. Now I have realized all features that I can think (e.g. FreeBSD, libdw, expire memblocks active), fixed all known bugs, tested on CentOS, Ubuntu, Debian and FreeBSD, and have no plan any more on it. Then I post it again here for some new advices.

Besides, if you have a production service with very slow memory leak. The leak is so slow that you do not want to fix it. Then you should try `memleax`. It’s convenient and suitable for this case specially.

Thanks.

12.

Memleax, new version 0.4(github.com ↗)

18 points · by hellowub · 10y ago · 6 comments

comment 10y ago · link · parent

I did not know GDB well, and wrote this for fun. wazari972 is going to write a tool using GDB and its python interface. Let's expect for it.

comment 10y ago · link · parent

Hm.. I do not know Heroku. Is there any problem that I could fix?

comment 10y ago · link · parent

Because target progress's each memory allocation/free API invokes a TRAP, the performance influence depends on how often the target program calls memory APIs. For example, it impacts lightly to nginx with HTTP, while heavily with HTTPS, because OpenSSL calls malloc seriously.

Although performance influence is worthy of consideration, since `memleax` is run to attach the target progress only when you certain it is in memory leak, and stopped after real-time memory leak report, so it is not need to attach the target progress for long time.

-- I have added the above to README.md in new version.

Because you can stop memleax as soon as you get enough memory leak report, so the sampling idea will delay the stopping, which make the impact longer.

-- My English is poor, and hope I can make myself understood.

comment 10y ago · link · parent

I did not know GDB and its Python interface. I think it may be a better way. Expect for your tool!

comment 10y ago · link · parent

A short time before I met a memory leak problem in production environment. The process began memory leak after long-time running. So I need a tool to detect memory leak of a running process. I searched the web but didn't find one. Then I wrote such a tool myself. I wonder if the tool is useful for others. So I share it here, and wait for your advices.

18.

Show HN: Memleax – detects memory leak of a running process(github.com ↗)

42 points · by hellowub · 10y ago · 9 comments