So I have a good number of files (based on current node count in the filesystem, 2498329) and when I try to make an .iso out of it, mkisofs runs out of memory, pushes the machine into swap and then runs out of that too. Is there something to make mkisofs less memory hungry? The reason I am creating an ISO because I would like to distribute these files but I can't just drop 2.5M files on people via an archive they extract onto existing filesystems (there would be serious risk of inode exhaustion for ext3, at least) so I thought ISO files are easy to mount on Linux, Windows, Mac OS X.
EDIT: tried --no-cache-inodes - it may or may not have helped, but memory usage still spiked back up past 1G during the initial scan.

7z, which supportstaris a bit less intrusive than installing drivers for a virtual CDROM. – jordanm Feb 16 at 17:59-split-output(together with-o filename), which could split it to several files. – ott-- Feb 18 at 17:06