Process

memx - Get process’ memory usage (Linux)

2024-05-30

I shared a simple piece of code for getting a process’ memory usage in Linux. It’s called memx. It’s Linux-specific only as it reads the proportional set size (PSS) data from either /proc/{pid}/smaps_rollup (if present) or /proc/{pid}/smaps file. I’ve used this piece of code many times at work. We use memory-mapped files extensively in some of our services and this is how we get more accurate results. Very useful in debugging OOMKilled events in k8s.

Golang · Linux · Memory · Process · Tech · Usage

1 minute

The DIVS model

2024-05-13

I posted a blog introducing the DIVS model, the process we use at Alphaus, the startup I work for. Check it out here.

Agile · Development · Process · Startup · Tech

1 minute

Start process as system using CreateProcessAsUser

2017-05-31

Note that this function assumes the caller to be running as SYSTEM as well (i.e. Windows service). For self reference:

C++ · Process · Windows

1 minute