View previous topic :: View next topic |
Author |
Message |
Toumam n00b
Joined: 19 May 2004 Posts: 3
|
Posted: Sat Jun 26, 2004 6:19 pm Post subject: Gentoo for an arcade game |
|
|
Hi,
I would like to use a Gentoo for an arcade game and I would like to shutdown the OS just by turning off the electricity without having a problem for the next boot.
After having looking for a while I ask your help.
I think problems with memory can be fixed using flash memory isnit?
Thanks |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54782 Location: 56N 3W
|
Posted: Sat Jun 26, 2004 7:31 pm Post subject: |
|
|
Toumam,
Err No. The problem stems from having unwritten data in cache in memory and filesystems marked as in use. FLASH will not change this.
You need to stop the system using disc cache by mounting with the sync option. that way data will not be kept in memory. This will give you a huge speed hit for writes. I'm not sure about reads. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
HydroSan l33t
Joined: 04 Mar 2004 Posts: 764 Location: The Kremlin (aka Canada)
|
Posted: Sat Jun 26, 2004 8:10 pm Post subject: |
|
|
Maybe once Magnetic RAM gets underway, it would work. Perhaps even Reiser4 could help in this situation? I remember reading that Reiser4 either performs a write, or it doesn't, and thus eliminates all corruption problems. _________________ I was a Gangster for Capitalism, by Major General Smedley Butler.
Server status: Currently down, being replaced with fresh install - 20% completed. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54782 Location: 56N 3W
|
Posted: Sat Jun 26, 2004 8:30 pm Post subject: |
|
|
Toumam,
If its to be a single app box, most of the filesystesms could be mounted read only. You could point /tmp and maybe /var at the shared memory filesystem. That does mean you can't save high scores though.
There is a small chunk (<100 bytes) of unused CMOS (battery backed RAM) that you could use for persistent data too. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
krinkle Guru
Joined: 04 Feb 2003 Posts: 338 Location: Garden Grove, CA
|
Posted: Sun Jun 27, 2004 6:41 am Post subject: |
|
|
if he's only using it as an arcade machine, does he really need all the disk caches flushed before the system shuts down? i don't see it as a big deal.
i'm guessing the reason flash would be advantageous is that it' not too good for your hard drive to randomly have power cut from it. you don't know where the heads are/what they are doing. i'm guessing that most of the time it wouldn't harm the drive, but i would bet it would shorten it's life. |
|
Back to top |
|
|
NewBlackDak Guru
Joined: 02 Nov 2003 Posts: 512 Location: Utah County, UT
|
Posted: Sun Jun 27, 2004 7:35 am Post subject: |
|
|
Use a very small HDD for /boot, swap, /tmp, and /var. Run the rest on a read-only USB pen. _________________ Gentoo systems.
X2 4200+@2.6 - Athy
X2 3600+ - Myth
UltraSparc5 440 - sparcy |
|
Back to top |
|
|
paulr n00b
Joined: 01 Jan 2003 Posts: 31 Location: Norfolk, England
|
Posted: Sun Jun 27, 2004 8:55 am Post subject: |
|
|
Have a fake power switch on the box that runs shutdown...... if you don't need a mouse dismantle an old one, wire the switch on the mouse buttons to your power button, then just shutdown when the "mouse button" is pressed. |
|
Back to top |
|
|
Toumam n00b
Joined: 19 May 2004 Posts: 3
|
Posted: Mon Jun 28, 2004 1:31 am Post subject: |
|
|
Ok Thanks a lot Im going to have a look with all this. |
|
Back to top |
|
|
Sastraxi Apprentice
Joined: 25 Feb 2003 Posts: 258
|
Posted: Mon Jun 28, 2004 5:44 am Post subject: |
|
|
Or, just run acpid and your system will handle shutdown itself once the power button is pressed.
emerge -pv acpid
/etc/init.d/acpid start
rc-update add acpid default _________________ Platypus. |
|
Back to top |
|
|
Deathwing00 Bodhisattva
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Mon Jun 28, 2004 12:52 pm Post subject: |
|
|
Moved from Multimedia. |
|
Back to top |
|
|
|