Hacker Newsnew | past | comments | ask | show | jobs | submit | boltn's commentslogin

This problem is completely mitigated by just not having a 100% soylent diet, which is the vast majority of soylent users. It's an amazing supplement.


'How Postgres Makes Transactions Atomic' https://news.ycombinator.com/item?id=15027870


how would one go about running code/operations on ram as opposed to the hd?


On most operating systems you can use part of your RAM as disk. Format it like a regular disk, mount it and save files on it.

The data is gone if you restart tho.


I've wondered for a while how fast we could make a phone (or PC) that operated entirely in RAM disk and used flash storage just as a one-to-one backup and storage when powered off. Obviously this would require your phone to have 128GB of RAM. You'd write changes to the flash storage, but it'd mirror RAM as closely as possible without destroying power management or storage life.

Imagine if there was no lag opening any app because everything was in memory. Imagine your code getting simpler because you don't need to load assets off disk - that's done all in one go at boot time. You want to render an image out? Just do it - a reference to a file is a reference to a file, no loading it or wondering if it's loaded.

Flash storage in phones is fast enough these days that it's probably not worth it, and simply giving traditional phones lots of RAM will probably give 80% of the improvement for 20% of the cost. But I've been curious about the idea for some time.


> I've wondered for a while how fast we could make a phone (or PC) that operated entirely in RAM disk and used flash storage just as a one-to-one backup and storage when powered off. Obviously this would require your phone to have 128GB of RAM. You'd write changes to the flash storage, but it'd mirror RAM as closely as possible without destroying power management or storage life.

PuppyLinux did this for the Eee PC. Worked wonderfully. The only problem was that the distro eventually became outdated, filled with old packages.

http://www.puppylinux.org/wikka/EeePC


The first Nexus phone had .5GB RAM and .5GB flash.

In other words, you don't need a ton of space. 8GB split among OS, apps, an running programs would do pretty well, honestly. 16GB is definitely enough. The question becomes more about how much space you want for photos and mp3s, and whether there is actually a benefit to putting those in RAM at all.


The hot stuff already is in the disk cache, so _IF_ the applications are written well, I don't think the difference would be large.

Also, you may need more RAM than flash, as large resources may/should be compressed in Flash (and personal data should be encrypted)


Then if the phone had originally 4 gigs of ram, you’d need an extra 4 gigs of ram for each app. I guess you could partition your ram to have 4 gigs as scratch, but that would limit the number of programs you can run.


On most Linux distros, /tmp is a ramdisk.


I don't think this is nearly universal - certainly none of the systems I use have /tmp as tmpfs.

/dev/shm, on the other hand, is almost always guaranteed to be a tmpfs on glibc systems.


No.... some, sure. Not most.

RHEL7, and all it's derivatives (CentOS, Oracle Linux etc.) don't use tmpfs for /tmp by default, and they are arguably the most used linux distros in the world.


But with only 1 GB capacity


It depends on your setup. The default when no size is given is to use half the RAM.


Half? That seems kind of excessive. Are you sure that’s right?


I would guess that it’s given that capacity, but the memory is allocated lazily.


Correct; tmpfs only uses as much memory as as is used by the files it contains.


this is a great site :D


Thanks :) Just something fun for family, and friends.



SEEKING WORK - Remote, NYC

Technologies: Ruby, Javascript, Node, React, Haskell, Devops

Portfolio/CV: www.bolton.bio

Email: neill@bolton.bio

----------------

Hey all! My name's Neill. I'm your local linux enthusiast, web developer, cyclist, travel bug, and serial entrepreneur addicted to making cool stuff with awesome people.

I'm an experienced full-stack engineer and have been working with various companies and startups over the past four years and have taken on roles that include quality assurance engineering, frontend web development, mobile development, backend / database work, linux server administration.. if you have a vision I can own development from front to back and make it happen.

I'm always on the lookout for awesome workplaces with strong, engineering-driven culture to connect with and possibly be a part of and help grow. I learn very quickly and am always excited for whatever comes my way.


This. What else is a cloud dev environment supposed to provide?


SEEKING WORK - Remote, NYC

Technologies: Ruby, Rails, Javascript, Node, Angular, React

Portfolio/CV: www.bolton.bio

Email: neill@bolton.bio

----------------

Hey all! My name's Neill. I'm your local linux enthusiast, web developer, cyclist, travel bug, anime fan, serial entrepreneur addicted to making cool stuff with awesome people.

I'm an experienced full-stack engineer and have been working with various companies and startups over the past four years and have taken on roles that include quality assurance engineering, frontend web development, mobile development, backend / database work, linux server administration.. if you have a vision I can own development from front to back and make it happen.

I'm always on the lookout for awesome workplaces with strong, engineering-driven culture to connect with and possibly be a part of and help grow. I learn very quickly and am always excited for whatever comes my way.


SEEKING WORK - Remote, SF, NYC

Technologies: Ruby, Rails, Javascript, Node, Angular, React

Résumé/Email/Portfolio: http://boltn.gitlab.io

----------------

Hey all! My name's Neill. I'm your local linux enthusiast, web developer, cyclist, travel bug, anime fan, serial entrepreneur addicted to making cool stuff with awesome people.

I'm an experienced full-stack engineer and have been working with various companies and startups over the past four years and have taken on roles that include quality assurance engineering, frontend web development, mobile development, backend / database work, linux server administration.. if you have a vision I can own development from front to back and make it happen.

I'm always on the lookout for awesome workplaces with strong, engineering-driven culture to connect with and possibly be a part of and help grow. I learn very quickly and am always excited for whatever comes my way.


This is an idea that'll start gaining traction over the next few years. I was thinking of building something like this out in go backed by storj.io just the other day. We're also starting to see others like the aforementioned keybase filesystem, ipfs, maidsafe, etc.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: