Hacker News new | ask | show | jobs
by bemmu 1522 days ago
Really good post. It's amazing how fast you can scan all of IPv4.

I also needed tune SQLite recently for an event logging server, and "PRAGMA journal_mode=WAL" helped a lot.

2 comments

> Really good post. It's amazing how fast you can scan all of IPv4.

If you're just scanning one port, which the author seems to have done, you can probably do it in some minute or two, unless you wanna play nice and lower the rate of sending packets.

Otherwise if you wanna scan full IPv4 + all ports, it'll take a couple of minutes at least. Masscan with the right hardware seems to be able to do it in five minutes or less.

speaking of massscan, how about those dang expanse palo alto networks guys.

> YES IM STILL SITTING IN THE SAME SPOT I WAS THE LAST TIME YOU SCANNED ME AN HOUR AGO.

Yes, the author would probably get another huge speed up there. Some more potential optimizations here [1].

[1] https://phiresky.github.io/blog/2020/sqlite-performance-tuni...