I was running out of RAM and out of swap while trying to generate a copc out of a laz with #pdal (the laz weighs 4.7GB). So I created a 15GB swapfile by simply adding

swapDevices = [{
device = "/var/lib/swapfile_15G";
size = 15*1024;
}];

to configuration.nix, rebuild, and voilà. The process is currently running very smoothly, peak consuming the whole RAM as expected (64GB) + 12GB out of the available 24GB.

cc @sguimmara @autra

#linux #nixos #pointcloud #lidar

@sguimmara @autra Hello, new 5.8GB copc file! (And kind of RIP my igpu as soon as inpainting or eyedome lighting are involved)