mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2004-08-31, 20:33   #1
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

9,787 Posts
Default The most minimal Linux

What is the best Linux 'distro' to run mprime on, in terms of the smallest system usage.

For example, tomsrtbt, fits on a single floppy (bumped out to 1.7MB).
But almost assuredly, there are things in there that don't need to be in place just to run mprime on a machine that is only going to crunch. And if it is sneaker-net, no nead for any nasty network card drivers etc., and isn't 80x25 enough text space?
Uncwilly is offline   Reply With Quote
Old 2004-09-01, 19:46   #2
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

25×257 Posts
Default

Well, you can run Linux and mprime from a single floppy, but you wouldn't have room for the save files... Just look for the Mprime/MemTest86 thread...

(I'm not saying you want to do this! But you did ask for the smallest!)
Xyzzy is offline   Reply With Quote
Old 2004-09-01, 21:33   #3
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

9,787 Posts
Default

Does that tend to run any faster than a 'full' distro?
Uncwilly is offline   Reply With Quote
Old 2004-09-04, 00:53   #4
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

13·89 Posts
Default Single Floppy Linux

I think a single floppy Linux system plus application could be put together in a similar way to the mprime bootdisks in this thread: http://www.mersenneforum.org/showthread.php?t=2098 but in a more general way that would allow any application (small enough to fit on the rest of the floppy) to be run.

The base system would consist just of the bootloader, linux kernel, init, shell, and a boot script that mounts the floppy filesystem and runs an install script. The install script could unpack the application to the ramdisk, restore any save files, start the application, and create a cron job that periodically copies the save files from the ramdisk back to the floppy.

Since the application is not pre-installed on the boot ramdisk it could be changed just by replacing a tarball and install script on the floppy, and could be distributed separately from the base system. For example if mprime is the application then with a suitable install script all that would be needed to update to a new version would be to download the new sprime-x.y.tgz from the gimps site onto the floppy.

Someone may have done this already in which case it might just be a matter of writing a script for mprime, but if not I might try to put one together when I have some time later in the year.

However any machine with enough memory to run linux from a floppy like this can almost as easily (with a cheap 10/100 network card and cable) run as a diskless nfs client, which is a much more flexible and easily administered option (once the server is set up at least).
geoff is offline   Reply With Quote
Old 2004-09-04, 01:52   #5
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

263B16 Posts
Default

I am still dreaming of getting my 200MMX machine to factor, but I donn't have a server at the mo'.
Uncwilly is offline   Reply With Quote
Old 2004-09-04, 16:26   #6
moo
 
moo's Avatar
 
Jul 2004
Nowhere

11001010012 Posts
Default

burn to a cd i know it takes longer but think of it in a positive way.
moo is offline   Reply With Quote
Old 2004-09-05, 00:03   #7
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

48516 Posts
Default

Quote:
Originally Posted by Uncwilly
Does that tend to run any faster than a 'full' distro?
A full linux distribution will be just as fast, maybe even a little faster because the bootdisk kernel is optimised for size rather than speed, and a full distribution will load libraries optimised for your specific processor. However mprime doesn't spend much time in the kernel or library code so the difference should be minor.

Quote:
Originally Posted by moo
burn to a cd i know it takes longer but think of it in a positive way.
Yes a CD would work too, just a different bootloader, but you need a floppy for the save files anyway so it seems nicer to just have everything on the floppy and avoid depending on a CD.
geoff is offline   Reply With Quote
Old 2004-09-05, 00:36   #8
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

13×89 Posts
Default

Quote:
Originally Posted by Uncwilly
I am still dreaming of getting my 200MMX machine to factor, but I donn't have a server at the mo'.
A little awkward, but to use this bootdisk http://www.mersenneforum.org/zip/ for factoring you could do this:

1. Create the bootdisk floppy as per the instructions in the zip file.
2. Create prime.ini, worktodo.ini etc. for your factoring job on a blank floppy.
3. Boot from the bootdisk, and when the torture test starts press Ctrl-C.
4. Press Alt-F2 to switch to the second console and press enter to start the shell.
5. Insert the blank floppy. At the console prompt $ type:

$ mount -t vfat /dev/fd0 /mnt
$ mprime -d -W/mnt

6. When done press Ctrl-C to stop mprime and type:

$ umount /mnt

The results.txt will be on the floppy. Use wordpad to edit the files in windows, notepad does funny things to unix files. Any problems let me know.

Edit: Link fixed...
geoff is offline   Reply With Quote
Old 2004-10-17, 08:57   #9
Tanaselia
 
Oct 2004
Ineu, Arad, Romania

3 Posts
Default I choosed tomsrtbt

I used tomsrtbt at night. It's the fastest Linux I ever tried, even a little faster than full distro-es, like Red Hat 9, Mandrake 10.0 or Knoppix-on-HDD. I am very satisfied, but I think it can go faster, the tomsrtbt kernel is 2.2 or 2.4 one, so further optimisation is possible. The problem with newer kernel, 2.6 for instance, is that they are to big, even woth most features checked out, and cannot fit on a single floppy. But a bootable CD-RW is always a choice.
Tanaselia is offline   Reply With Quote
Old 2004-11-24, 10:07   #10
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

113178 Posts
Default

Quote:
Originally Posted by geoff
A little awkward, but to use this bootdisk http://www.mersenne.org/zip/ for factoring you could do this:
This link doesn't seem to work anymore

Luigi
ET_ is offline   Reply With Quote
Old 2004-11-24, 10:51   #11
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

13×89 Posts
Default

Quote:
Originally Posted by ET_
This link doesn't seem to work anymore
Sorry my mistake. The real link is http://www.mersenneforum.org/zip/
geoff is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
generalized minimal (probable) primes sweety439 sweety439 132 2021-06-11 16:21
Minimal information about RSA prime factorization farah Factoring 1 2013-02-05 23:58
64-bit CD or DVD Linux henryzz Linux 15 2008-06-29 12:30
How do I get my ubuntu install past minimal install? jasong Linux 2 2006-12-07 00:38
Running Prime95 with minimal phone activity jasong Software 5 2006-08-14 04:10

All times are UTC. The time now is 07:14.


Sat Jul 17 07:14:39 UTC 2021 up 50 days, 5:01, 1 user, load averages: 1.24, 1.36, 1.49

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.