/dev/null is not a database. By this logic is a hard disk a database, is a CD a database. No. They are storage mediums. You could store a database on them, but they themselves are not a database. Considering there is no way to read back data written to /dev/null it will not be useful for storing database data.
seems you've missed the joke
/dev/null is an ACID compliant database
51–60 of 203 posts
Re: /dev/null is an ACID compliant database
#52/dev/null is not a database. By this logic is a hard disk a database, is a CD a database. No. They are storage mediums. You could store a database on them, but they themselves are not a database. Considering there is no way to read back data written to /dev/null it will not be useful for storing database data.
Re: /dev/null is an ACID compliant database
#53Earlier quoted context omitted.
Bug free software is a pipe dream, but if there is anything I've never encountered any bugs with, /dev/null and true is certainly in the top 3.
Joking aside I can’t ever remember seeing a bug in either bash or zsh, never seen either crash or segfault and anytime I’ve had weirdness it’s always turned out to be me missing something. Both (along with a lot of the standard utilities) are a testament to what talented C programmers plus years of people beating on them in unintended ways can achieve in terms of reliability/stability.
Re: /dev/null is an ACID compliant database
#54Earlier quoted context omitted.
My artisanal architecture design uses writes with a few characters and uses unix pipes: yes | pv > /dev/null I hope that in my next rewrite I can advance to larger block sizes.
Interestingly I tried this as well and was disappointed with the results: yes $(printf %1024s | tr " " "y") | pv > /dev/null About the same throughput as letting yes output a single character. I guess Unix pipes are slow.
Or string concatenation, or pipeviewer.
Re: /dev/null is an ACID compliant database
#55Re: /dev/null is an ACID compliant database
#56Earlier quoted context omitted.
I'm easily reaching 30GB/s with a single client: dd if=/dev/zero of=/dev/null bs=1M status=progress A second dd process hits the same speed.
What's the best hardware for running a /dev/null instance for production?
Re: /dev/null is an ACID compliant database
#57Earlier quoted context omitted.
Interestingly I tried this as well and was disappointed with the results: yes $(printf %1024s | tr " " "y") | pv > /dev/null About the same throughput as letting yes output a single character. I guess Unix pipes are slow.
> I guess Unix pipes are slow. Or string concatenation, or pipeviewer.
https://github.com/coreutils/coreutils/blob/master/src/yes.c
Re: /dev/null is an ACID compliant database
#58Re: /dev/null is an ACID compliant database
#59Re: /dev/null is an ACID compliant database
#60Discussed on HN a few times, but apparently not for a few years now: https://hn.algolia.com/?q=http%3A%2F%2Fwww.supersimplestorag...