JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for SPM Archives


SPM Archives

SPM Archives


SPM@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

SPM Home

SPM Home

SPM  2003

SPM 2003

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Limitation of Linux in handling huge dataset

From:

[log in to unmask]

Reply-To:

[log in to unmask]

Date:

Sat, 30 Aug 2003 16:22:28 +0200

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (264 lines)

Dear Zhang,

The x86 architecture uses a 32-bit int for many things.
Therefore, on older kernels on the x86 architecture, file size is
limited to the values you can store in a 32-bit signed int.
Older glibc and all the programs linked against it inherit this
32-bit signed int limitation, leading to the 2G problem.  It never was a
problem on 64-bit architectures like Alpha and Sparc.
 
Older versions of Matlab still use (g)libc5 to keep compatibility 
with all the other Unix-architectures which aren't updated as often 
as Linuxboxes may be. Versions up to 12 got some arcane
dependencies. You can help yourself if you use a recent
kernel (2.4.21) and a newer version of gcc (above 3.0).

For the repartitioning:
You would be better off in using the native Linux-commands instead
of that Partition-Magic. Try fdisk and 'man mkswap' for turning swapon.
There's also a excellent commandline-tool called parted (does the same as
PM for free) which is quite intuitive. And it does the thing in your systems
manner.

Greetings
Markus Schatzl

University of Regensburg, Germany


> Dear Zhang,
> 
> According to MathWorks, Matlab is a  32-bit application.  Thus, a file
> is limited at 2-4 GB.
> Our SuSE 32-bit Intel Linux and 64-bit SUN systems swap spaces are set
> at 10-20 GB (2-4 GB RAM).
> Per Matlab window on both systems, we can have only one biggest 2-GB
> matrix and many smaller matrices.
> 
> Cheers,
> Witaya Sungkarat
> 
> >Dear Chris,
> >
> >Thank you for your reply.
> >
> >On 27 Aug 2003, Christopher Joseph Bailey wrote:
> >
> >
> >
> >>> Dear Zhang,
> >>>
> >>> Sounds to me that you should consider chopping up that dataset in
> >>
> >>
> >some
> >
> >
> >>> way (what, I can't say). You should also upgrade your system to at
> >>
> >>
> >least
> >
> >
> >>> 1-2GB RAM, because swapping is, in general, a rather bad thing (as it
> >>> slows things down /considerably/).>
> >>
> >>
> >
> >yes indeed, at the end we used SPM to reslice the images and thrinked the
> whole
> >dataset to the size somehow bearable for the PC system, with a price of
> lower image
> >resolution which normally should be avoided, anyway we bought a Sun
> >Workstation later (that was very sad).
> >
> >
> >
> >
> >>> On your swap-problem, I can give an answer. Linux (the kernel, I
> >>
> >>
> >guess)
> >
> >
> >>> has a 2GB limitation for swap devices so expanding swap partitions to
> >>> 10GB won't help. However, you can have /multiple/ swap filesystems,
> >>
> >>
> >2GB
> >
> >
> >>> each. Use PM to repartition your 10GB swap to 5x2GB and try "swapon"
> >>
> >>
> >on
> >
> >
> >>> them separately.
> >>
> >>
> >
> >This is really very helpful and informative, I read  someone provided a
> >kernel hack in order to overcome the 2G swap limit, and I am not afraid
> >of recompling the kernel with this patch, but your method looks lot
> easier
> >and safer.
> >
> >Many thanks!
> >
> >Zhang
> >
> >
> >
> >>> I'm no Windows expert (that would be very sad), so can't help you on
> >>> that side.
> >>>
> >>> Good luck!
> >>>
> >>> Best, -Chris
> >>>
> >>>
> >>> --
> >>> Christopher Bailey
> >>> Research Assistant (MSc)
> >>> Center for Functionally Integrative Neuroscience (CFIN)
> >>> [log in to unmask]
> >>> phn: +45 89 49 43 78
> >>> fax: +45 89 49 44 00
> >>>
> >>> Street address:
> >>> Bygning 30, Troejborgvej 72
> >>> Aarhus Kommunehospital, DK-8000 Aarhus C
> >>> Denmark
> >>>
> >>>
> >>> On Tue, 2003-08-26 at 13:28, Hao Zhang wrote:
> >>
> >>
> >>>> > Dear SPMers,
> >>>> >
> >>>> > Sorry this might be bit off the topic,while I'd really like to know
> >>>
> >>>
> >if
> >
> >
> >>>> > someone has gone though the similar situation and the if there is
> >>>
> >>>
> >any
> >
> >
> >>>> > solution for it.
> >>>> > I once obtained a dataset of 5 Gigabyte in size, when my colleague
> >>>
> >>>
> >and I
> >
> >
> >>>> > tried to launch the second-level group analysis, there came the
> >>>> > BIG problem: The 5G dataset seemed to have driven PC to the
> >>>
> >>>
> >performance
> >
> >
> >>>> > limit , the machine is a P4 with 560M RAM, Win2K/Linux dual-boot,
> >>>> > SPM/Matlab compained
> >>>> > out of memory at the very early stage of loading the big group
> >>>
> >>>
> >contrast
> >
> >
> >>>> > files under Win2K, enlarging the virtual memory did not help at
> >>>
> >>>
> >all, the
> >
> >
> >>>> > the situation under Linux is slightly better than under Win2k, but
> >>>
> >>>
> >the task
> >
> >
> >>>> > bar stoped at 60-70% something.
> >>>> > Having looked at the kernel mailing list archive, I started to
> >>>
> >>>
> >realize
> >
> >
> >>>> > there is a 2G limit for the swap partition for Linux(I did set the
> >>>
> >>>
> >swap
> >
> >
> >>>> > partition to the maximum), while there are people saying it is just
> >>>
> >>>
> >the
> >
> >
> >>>> > limitation of swapon utility, but after I used ParitionMagic to set
> >>>
> >>>
> >the
> >
> >
> >>>> > Linux swap partition to 10G , the system still report only 2G of
> >>>
> >>>
> >swap file
> >
> >
> >>>> > system, and I had no clue where to fine-tune the swapon options. I
> >>>
> >>>
> >have
> >
> >
> >>>> > been using Linux quite confidently and thought it can always
> >>>
> >>>
> >replace the
> >
> >
> >>>> > expensive Unix system in every aspect, is there anyone who met such
> >>>
> >>>
> >problem
> >
> >
> >> > bfore and found some solution for it? Many thanks!
> >> >
> >> > best regards
> >> >
> >> > zhang
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > *************************************************
> >> > Zhang Hao, Dr. med. M.Sc
> >> > International Institute for Research in Paraplegia
> >> > Balgrist University Hospital
> >> > Forchstrasse 340
> >> > CH-8008 Zuerich
> >> > Tel.: ++41 1 386 3721
> >> > Fax: ++41 1 386 3731
> >> > email: [log in to unmask]
> >> > *************************************************
> >
> 

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

May 2024
April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
2006
2005
2004
2003
2002
2001
2000
1999
1998


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager