mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2009-09-14, 21:01   #1
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

3×3,041 Posts
Default HowTo: Switch to Linux to finish factoring

Retry it on a completely idle computer (maybe try to kill as many useless processes in your Task Manager, sorted by size, beforehand).

You can also do the Ubuntu installation. Not just for this, but for the future experiments (as well as fast sieving). Ubuntu will see the existing drives - you will not need to transfer data.

You are almost there.
Batalov is offline   Reply With Quote
Old 2009-09-15, 05:30   #2
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

46478 Posts
Default HowTo: Switch to Linux to finish factoring

Quote:
Originally Posted by Batalov View Post
Retry it on a completely idle computer (maybe try to kill as many useless processes in your Task Manager, sorted by size, beforehand).

You can also do the Ubuntu installation. Not just for this, but for the future experiments (as well as fast sieving). Ubuntu will see the existing drives - you will not need to transfer data.

You are almost there.
I did the filtering step (-nc1) with msieve 1.38 overnight and attempted the matrix step (-nc2) with 1.42 - it failed to allocate 35 MB.

Now - as I see your answer - I installed a pending windows update and rebooted, and then killed every process which I dared to kill. Now, I am retrying with ~50MB more free RAM. (Unfortunately I can't completely deactivate my virus scan (the laptop I'm doing the matrix on is currently disconnected from internet), I hope that it doesn't kick in and shoot the matrix process down by using one MB too many.)

When it fails again, I guess that I'll have to either do some more oversieving (and hope to get a smaller matrix), or to install Ubuntu.

Ubuntu questions:
- Is there a possibility to boot Ubuntu from a CD or an USB stick?
- if not: How do I set up my laptop as dual boot system? (currently, WinXP is installed; I don't want to uninstall it - or anything else)
- Even if Ubuntu sees all existing drives - I guess I will have to compile msieve for Linux? (Is there a howtodo out there for linux noobs?)

Last fiddled with by Andi47 on 2009-09-15 at 05:45
Andi47 is offline   Reply With Quote
Old 2009-09-15, 06:02   #3
axn
 
axn's Avatar
 
Jun 2003

22×11×107 Posts
Default

Quote:
Originally Posted by Andi47 View Post
Ubuntu questions:
- Is there a possibility to boot Ubuntu from a CD or an USB stick?
- if not: How do I set up my laptop as dual boot system? (currently, WinXP is installed; I don't want to uninstall it - or anything else)
- Even if Ubuntu sees all existing drives - I guess I will have to compile msieve for Linux? (Is there a howtodo out there for linux noobs?)
Having recently gone thru the process, let me try to answer:

1. Yes.
2. Download ubuntu .iso, and burn the CD. use it to boot. It will guide you. It will show which hdd has space and stuff. Just allocate a reasonable size partition, and the installer will automatically take care of creating the dual boot.
3. you need to first make sure that gmp is installed. i don't remember whether it is installed by default or not (if not, use Synaptic Package Manager to do it). other than that, compiling is as easy as downloading msieve source and doing a "make x86_64" command.

Last fiddled with by axn on 2009-09-15 at 06:03
axn is offline   Reply With Quote
Old 2009-09-15, 06:33   #4
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

11×521 Posts
Default

if you need help compiling msieve people on the forum can help
henryzz is offline   Reply With Quote
Old 2009-09-15, 06:55   #5
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

7·353 Posts
Default

Quote:
Originally Posted by axn View Post
Just allocate a reasonable size partition...
Does this mean that it will automally generate the partition when I allocate - say - 10 GB? (would 10 GB be enough? Can I install Ubuntu on a "minimal sized" partition and then install other programs (to run under linux) in a seperate folder on the windows partition? How many GB would be "minimal sized"?)

My laptop currently has only got a C: drive (currently ~32 GB free) which I would have to divide into two partitions.
Andi47 is offline   Reply With Quote
Old 2009-09-15, 06:58   #6
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

2×3×5×337 Posts
Default

Quote:
Originally Posted by Andi47 View Post
After a filtering attempt (51M raw rels, 44.2M unique), I got this:

Code:
...
Mon Sep 14 21:28:56 2009  commencing cycle optimization
failed to reallocate 163840000 bytes
*grrrr*

I will retry -nc1 with 1.38 and see if it swaps or aborts. If it aborts, I'll try filtering on my (a bit slower) P4 (3 GB RAM available) - or is there a trick to force msieve 1.42 to use swap instead of aborting with with "failed to reallocate xy bytes"?
The critical word in that message is "reallocate".

I ran into this problem many times when performing large factorizations on 32-bit MS Windows machines. It's not (usually) lack of memory that causes the crash, it's virtual address fragmentation. Sundry system components are located at fixed virtual addresses. Even if there is enough physical memory to reallocated your data somewhere else, there isn't enough contiguous unused virtual address space to hold the two copies, old and new, while the reallocation takes place.

The only solutions I know of are to run 64-bit Windows or to run a Unix-like operating system, preferably on a 64-bit machine.

In your case, I'd definitely recommend running a 64-bit Linux from a live CD with user data held on a USB stick so you can recover from system outages.


Paul
xilman is offline   Reply With Quote
Old 2009-09-15, 08:06   #7
axn
 
axn's Avatar
 
Jun 2003

22×11×107 Posts
Default

Quote:
Originally Posted by Andi47 View Post
Does this mean that it will automally generate the partition when I allocate - say - 10 GB?
Yep. Windows will not see the linux partition, but linux can see the windows stuff. 10GB is pretty reasonable for linux install.
axn is offline   Reply With Quote
Old 2009-09-15, 18:34   #8
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

1001101001112 Posts
Default

Thanks for advice. I am downloading ubuntu now and will install next weekend. As long, I will sieve for 1 additional MQ and try filtering again. (if this one turns out to run happily on windows, I will postpone the installation of ubuntu until the matrix has finished.)
Andi47 is offline   Reply With Quote
Old 2009-09-16, 20:50   #9
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

9A716 Posts
Angry

Quote:
Originally Posted by Andi47 View Post
Does this mean that it will automally generate the partition when I allocate - say - 10 GB? (would 10 GB be enough? Can I install Ubuntu on a "minimal sized" partition and then install other programs (to run under linux) in a seperate folder on the windows partition? How many GB would be "minimal sized"?)

My laptop currently has only got a C: drive (currently ~32 GB free) which I would have to divide into two partitions.
AAAAAAAaaaaaaaaarrrrrrrgggghhh!!!

Ubuntu insisted in setting a password when installing, and - after 5375641467 retrys to login - I think that I must have either misspelled the username, or misspelled the initial passwort twice when installing it, with the result, that I can't login to ubuntu now.

I guess, I will have to kill the installation and retry - how do I do that? Just boot into windows (this still works), format the ubuntu partition and start installation again, or do I have to do more?
Andi47 is offline   Reply With Quote
Old 2009-09-17, 02:19   #10
axn
 
axn's Avatar
 
Jun 2003

22·11·107 Posts
Default

Quote:
Originally Posted by Andi47 View Post
AAAAAAAaaaaaaaaarrrrrrrgggghhh!!!

Ubuntu insisted in setting a password when installing, and - after 5375641467 retrys to login - I think that I must have either misspelled the username, or misspelled the initial passwort twice when installing it, with the result, that I can't login to ubuntu now.

I guess, I will have to kill the installation and retry - how do I do that? Just boot into windows (this still works), format the ubuntu partition and start installation again, or do I have to do more?
Try this link: http://www.psychocats.net/ubuntu/resetpassword. Print/write out the instructions, before you attempt it (or use a second computer).

Last fiddled with by axn on 2009-09-17 at 02:22
axn is offline   Reply With Quote
Old 2009-09-17, 04:58   #11
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

7·353 Posts
Default

Quote:
Originally Posted by axn View Post
Try this link: http://www.psychocats.net/ubuntu/resetpassword. Print/write out the instructions, before you attempt it (or use a second computer).
THANKS, this worked. The key was ls /home which showed me, that my username had been set to be every letters lowercase, while I always typed the first letter uppercase.

Edit: Seems I'm really a total linux noob.

Questions:

1.) Is it really possible to see the windows partition? How?
2.) How do I open a prompt window?
3.) How do I install GMP?

Last fiddled with by Andi47 on 2009-09-17 at 05:14 Reason: some noob-questions
Andi47 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto start mprime automically for (Debian) Linux joblack Software 26 2018-11-05 11:18
Clicks of death, good opportunity to switch to Linux jasong jasong 4 2013-12-28 02:47
Switch from Windows to Linux Svenie25 Software 2 2013-12-18 11:23
Okay to switch between windows and linux? Unregistered Information & Answers 1 2011-06-09 02:28
LINUX mprime does not switch speedstep off graysky PrimeNet 6 2008-11-15 18:08

All times are UTC. The time now is 05:44.

Wed Oct 21 05:44:20 UTC 2020 up 41 days, 2:55, 0 users, load averages: 1.25, 1.30, 1.37

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.