PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Can I compile a hugemem kernel?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Can I compile a hugemem kernel?

Réponse
 
LinkBack Outils de la discussion
Vieux 08/03/2007, 15h30   #1
Andrew Perrin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Can I compile a hugemem kernel?

Greetings-

I seem to have developed a need for a single process (R) to use more than
3G of RAM. The system has 6G, and is doing virtually nothing else. Is
there a way to compile 2.6.18 or higher with the so-called hugemem patch
under debian?

Thanks.

----------------------------------------------------------------------
Andrew J Perrin - andrew_perrin (at) unc.edu - http://perrin.socsci.unc.edu
Assistant Professor of Sociology; Book Review Editor, _Social Forces_
University of North Carolina - CB#3210, Chapel Hill, NC 27599-3210 USA
New Book: http://www.press.uchicago.edu/cgi-bi.../00/178592.ctl



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 08/03/2007, 17h20   #2
Andrei Popescu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Can I compile a hugemem kernel?

Andrew Perrin <clists@perrin.socsci.unc.edu> wrote:

> Greetings-
>
> I seem to have developed a need for a single process (R) to use more
> than 3G of RAM. The system has 6G, and is doing virtually nothing
> else. Is there a way to compile 2.6.18 or higher with the so-called
> hugemem patch under debian?


Do you need to compile your own kernel for some particular reason?

~$ apt-cache show linux-image-2.6.18-4-686-bigmem

[...]

Description: Linux 2.6.18 image on PPro/Celeron/PII/PIII/P4

This package provides the binary image and pre-built loadable modules
for Linux kernel 2.6.18 on Pentium Pro/Celeron/Pentium II/Pentium
III/Pentium 4 with 4-64G RAM machines.

HTH,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 08/03/2007, 21h20   #3
Damien Ferrand
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Can I compile a hugemem kernel?

On 08/03/07 10:28 -0500, Andrew Perrin wrote:
> I seem to have developed a need for a single process (R) to use more than
> 3G of RAM. The system has 6G, and is doing virtually nothing else. Is
> there a way to compile 2.6.18 or higher with the so-called hugemem patch
> under debian?

It looks like hugemem is a redhat thing... I don't know if it is
easy/possible to have it under debian. These kernels are generally heavily
patched.

But even with this patch, a signle process will be limited to less than 4G of
memory. As the hugemem kernels have switching overhead check if you really
can't work in another way.

Regards,

Damien
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF8HwYijvYwIbxFwERAkq0AKDsBDw9YDIqWR5q1/0PNIiizZB6YgCfcLl4
IV2ubScULXyxgmdkcsmy5s0=
=w+zr
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 09/03/2007, 00h20   #4
Ron Johnson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Can I compile a hugemem kernel?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/08/07 15:11, Damien Ferrand wrote:
> On 08/03/07 10:28 -0500, Andrew Perrin wrote:
>> I seem to have developed a need for a single process (R) to use more than
>> 3G of RAM. The system has 6G, and is doing virtually nothing else. Is
>> there a way to compile 2.6.18 or higher with the so-called hugemem patch
>> under debian?

> It looks like hugemem is a redhat thing... I don't know if it is
> easy/possible to have it under debian. These kernels are generally heavily
> patched.
>
> But even with this patch, a signle process will be limited to less than 4G of
> memory. As the hugemem kernels have switching overhead check if you really
> can't work in another way.


Yes, you really need a 64-bit system for a single process to
efficiently use more than 1 (or is it 2?) GB or memory.



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF8KaOS9HxQb37XmcRAqSuAJ9xGGNB0wyC45G5c7ih82 fHiWBsTACfS2MG
8ygMAVHuRcFDuBpSIDawHnE=
=/25b
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 09/03/2007, 01h40   #5
Andrew Perrin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Can I compile a hugemem kernel?

On Thu, 8 Mar 2007, Ron Johnson wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 03/08/07 15:11, Damien Ferrand wrote:
>> On 08/03/07 10:28 -0500, Andrew Perrin wrote:
>>> I seem to have developed a need for a single process (R) to use more than
>>> 3G of RAM. The system has 6G, and is doing virtually nothing else. Is
>>> there a way to compile 2.6.18 or higher with the so-called hugemem patch
>>> under debian?

>> It looks like hugemem is a redhat thing... I don't know if it is
>> easy/possible to have it under debian. These kernels are generally heavily
>> patched.
>>
>> But even with this patch, a signle process will be limited to less than 4G of
>> memory. As the hugemem kernels have switching overhead check if you really
>> can't work in another way.

>
> Yes, you really need a 64-bit system for a single process to
> efficiently use more than 1 (or is it 2?) GB or memory.
>


The consensus elsewhere seems to be that it's actually 3G per process, but
that's still not enough for this application. Oh well....

ap

----------------------------------------------------------------------
Andrew J Perrin - andrew_perrin (at) unc.edu - http://perrin.socsci.unc.edu
Assistant Professor of Sociology; Book Review Editor, _Social Forces_
University of North Carolina - CB#3210, Chapel Hill, NC 27599-3210 USA
New Book: http://www.press.uchicago.edu/cgi-bi.../00/178592.ctl





--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 09/03/2007, 04h00   #6
Ron Johnson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Can I compile a hugemem kernel?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/08/07 19:35, Andrew Perrin wrote:
> On Thu, 8 Mar 2007, Ron Johnson wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 03/08/07 15:11, Damien Ferrand wrote:
>>> On 08/03/07 10:28 -0500, Andrew Perrin wrote:
>>>> I seem to have developed a need for a single process (R) to use more
>>>> than
>>>> 3G of RAM. The system has 6G, and is doing virtually nothing else. Is
>>>> there a way to compile 2.6.18 or higher with the so-called hugemem
>>>> patch
>>>> under debian?
>>> It looks like hugemem is a redhat thing... I don't know if it is
>>> easy/possible to have it under debian. These kernels are generally
>>> heavily
>>> patched.
>>>
>>> But even with this patch, a signle process will be limited to less
>>> than 4G of
>>> memory. As the hugemem kernels have switching overhead check if you
>>> really
>>> can't work in another way.

>>
>> Yes, you really need a 64-bit system for a single process to
>> efficiently use more than 1 (or is it 2?) GB or memory.
>>

>
> The consensus elsewhere seems to be that it's actually 3G per process,
> but that's still not enough for this application. Oh well....


Every time I've had a process go into a RAM-gobbling death spiral,
it's died at 1 (or 2) GB. It's been a while since I've seen such a
bug. But then, I just tried this test program, which successfully
allocated 2.4GB (VIRT 2401m & RES 875m):

$ cat testmem3.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char **argv)
{
unsigned long mb = atoi(argv[1]) * 1024 * 1024;
char *p = malloc(mb);
memset(p, 0xDEAD, mb);
sleep(30);
}
$ gcc -o testmem3 testmem3.c
$ ./testmem3 2400





>
> ap
>
> ----------------------------------------------------------------------
> Andrew J Perrin - andrew_perrin (at) unc.edu - http://perrin.socsci.unc.edu
> Assistant Professor of Sociology; Book Review Editor, _Social Forces_
> University of North Carolina - CB#3210, Chapel Hill, NC 27599-3210 USA
> New Book: http://www.press.uchicago.edu/cgi-bi.../00/178592.ctl
>
>
>
>
>


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF8NpkS9HxQb37XmcRAlO5AJ9+zylISLDWfwlpAOlL4G aMpqk/hACfbD8d
wVWAg3E+g0GjZVZCP9RlUpM=
=BtWv
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h39.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,17938 seconds with 14 queries