Live data from Hacker News

Pingfs: A filesystem where data is stored as ICMP Echo packets (2016)

github.com

1–10 of 45 posts

Re: Pingfs: A filesystem where data is stored as ICMP Echo packets (2016)

#3
This is exactly what I needed - not a lot of people are doing eventually inconsistent databases yet. If theres a network partition, shits probably fucked anyways so its best to throw away all your data.

Unfortunately the metadata (list of files) is stored in memory, not network. Not quite as unreliable as I would like.

Re: Pingfs: A filesystem where data is stored as ICMP Echo packets (2016)

#5
Just had a quick look to see the general flow.

Only looked at the read path, which is roughly:

* filesystem receives read

* blocks on a semaphore (https://github.com/yarrick/pingfs/blob/master/chunk.c#L141)

* network thread wakes up semaphore when ICMP reply containing data is received

* filesystem thread copies data into new buffer to return from syscall

* filesystem relinquishes chunk back to network thread, which wakes up, sends it back to be echoed on the network via ICMP, and frees the in-memory buffer (https://github.com/yarrick/pingfs/blob/master/chunk.c#L107)

How silly :)

Re: Pingfs: A filesystem where data is stored as ICMP Echo packets (2016)

#8

This is exactly what I needed - not a lot of people are doing eventually inconsistent databases yet. If theres a network partition, shits probably fucked anyways so its best to throw away all your data. Unfortunately the metadata (list of files) is stored in memory, not network. Not quite as unreliable as I would like.

Sounds like your looking for something like MangoDb https://github.com/dcramer/mangodb

Note: joke assumes parent poster was somewhat humorous

Post reply on HN