News for hackers. Stuff that matters.
Re:How Google Code Search Worked (2012) by akkartik on Thursday March 12, 2020 @12:20PM (#22558391)
Yeah, you have to run a server. When a process exits, all its mmap'd pages are reclaimed. Just like any other memory.
Re:How Google Code Search Worked (2012) by bminor13 on Thursday March 12, 2020 @01:53PM (#22559639)
But this excerpt says that this technique obviates the need for a server process? Are they saving the contents of memory into files using mmap, and then using this state on every run?
Re:How Google Code Search Worked (2012) by akkartik on Thursday March 12, 2020 @01:58PM (#22559703)
I just reread your quoted passage and noticed the reference to the OS's file cache. Ok, this is outside my knowledge :)