Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?... Nom : non disponible URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20121003/e5c52452/attachment.pl>
How to limit memory on a server
9 messages · Hervy Cyril, Brian Ripley, Duncan Murdoch
On 03/10/2012 5:12 AM, Hervy Cyril wrote:
Hello, In our structure, users connect to a server (64GB of memory) where they launch R. How can I limit the amount of RAM that could use a user. The function memory.limit(size=...) can limit the amount of memory but I would like users can't change this option in R. Is it possible?
Generally speaking, that's something that the operating system needs to enforce. If you don't know how to do it with your OS, you might get some advice here by saying which one it is, but you may have to ask a sysadmin at your site. Duncan Murdoch
And your OS is? See the footer and the 'at a minimum' information the posting guide asks for. I think you are confusing 'memory' and 'RAM': the two concepts are distinct. But R is not a special case, and you do it the same way as you do this for any other process, by your OS facilities.
On 03/10/2012 10:12, Hervy Cyril wrote:
Hello, In our structure, users connect to a server (64GB of memory) where they launch R. How can I limit the amount of RAM that could use a user. The function memory.limit(size=...) can limit the amount of memory but I would like users can't change this option in R. Is it possible? Thank you. Cyril Hervy [[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
My OS is a 64-bit Windows Server 2008 SP2 and I have a sysadmin account on the server. Thank you. Best regards Cyril Hervy -----Message d'origine----- De : Duncan Murdoch [mailto:murdoch.duncan at gmail.com] Envoy? : mercredi 3 octobre 2012 15:39 ? : Hervy Cyril Cc : R-help (r-help at r-project.org) Objet : Re: [R] How to limit memory on a server
On 03/10/2012 5:12 AM, Hervy Cyril wrote:
Hello, In our structure, users connect to a server (64GB of memory) where they launch R. How can I limit the amount of RAM that could use a user. The function memory.limit(size=...) can limit the amount of memory but I would like users can't change this option in R. Is it possible?
Generally speaking, that's something that the operating system needs to enforce. If you don't know how to do it with your OS, you might get some advice here by saying which one it is, but you may have to ask a sysadmin at your site. Duncan Murdoch
My OS is a 64-bit Windows Server 2008 SP2 and I would like to limit RAM usage on the server. Thank you. Best regards Cyril Hervy -----Message d'origine----- De : Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] Envoy? : mercredi 3 octobre 2012 15:43 ? : Hervy Cyril Cc : R-help (r-help at r-project.org) Objet : Re: [R] How to limit memory on a server And your OS is? See the footer and the 'at a minimum' information the posting guide asks for. I think you are confusing 'memory' and 'RAM': the two concepts are distinct. But R is not a special case, and you do it the same way as you do this for any other process, by your OS facilities.
On 03/10/2012 10:12, Hervy Cyril wrote:
Hello, In our structure, users connect to a server (64GB of memory) where they launch R. How can I limit the amount of RAM that could use a user. The function memory.limit(size=...) can limit the amount of memory but I would like users can't change this option in R. Is it possible? Thank you. Cyril Hervy [[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
On 03/10/2012 16:12, Hervy Cyril wrote:
My OS is a 64-bit Windows Server 2008 SP2 and I would like to limit RAM usage on the server.
Ask your sysadmins, as Duncan Murdoch advised. R only know about virtual memory usage, not RAM usage.
Thank you. Best regards Cyril Hervy -----Message d'origine----- De : Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] Envoy? : mercredi 3 octobre 2012 15:43 ? : Hervy Cyril Cc : R-help (r-help at r-project.org) Objet : Re: [R] How to limit memory on a server And your OS is? See the footer and the 'at a minimum' information the posting guide asks for. I think you are confusing 'memory' and 'RAM': the two concepts are distinct. But R is not a special case, and you do it the same way as you do this for any other process, by your OS facilities. On 03/10/2012 10:12, Hervy Cyril wrote:
Hello, In our structure, users connect to a server (64GB of memory) where they launch R. How can I limit the amount of RAM that could use a user. The function memory.limit(size=...) can limit the amount of memory but I would like users can't change this option in R. Is it possible? Thank you. Cyril Hervy [[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
On 03/10/2012 11:07 AM, Hervy Cyril wrote:
My OS is a 64-bit Windows Server 2008 SP2 and I have a sysadmin account on the server.
Sounds like it's a question for Microsoft (or their web site) then. You might want to start here: http://technet.microsoft.com/en-us/library/cc753446.aspx Duncan Murdoch
Thank you. Best regards Cyril Hervy -----Message d'origine----- De : Duncan Murdoch [mailto:murdoch.duncan at gmail.com] Envoy? : mercredi 3 octobre 2012 15:39 ? : Hervy Cyril Cc : R-help (r-help at r-project.org) Objet : Re: [R] How to limit memory on a server On 03/10/2012 5:12 AM, Hervy Cyril wrote:
Hello, In our structure, users connect to a server (64GB of memory) where they launch R. How can I limit the amount of RAM that could use a user. The function memory.limit(size=...) can limit the amount of memory but I would like users can't change this option in R. Is it possible?
Generally speaking, that's something that the operating system needs to enforce. If you don't know how to do it with your OS, you might get some advice here by saying which one it is, but you may have to ask a sysadmin at your site. Duncan Murdoch
I think R keeps all the data in RAM ? The function memory.limit() refers to the RAM size ? I will try to configure the OS. Thanks. Best regards Cyril Hervy -----Message d'origine----- De : Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] Envoy? : mercredi 3 octobre 2012 17:22 ? : Hervy Cyril Cc : R-help (r-help at r-project.org) Objet : Re: [R] How to limit memory on a server
On 03/10/2012 16:12, Hervy Cyril wrote:
My OS is a 64-bit Windows Server 2008 SP2 and I would like to limit RAM usage on the server.
Ask your sysadmins, as Duncan Murdoch advised. R only know about virtual memory usage, not RAM usage.
Thank you. Best regards Cyril Hervy -----Message d'origine----- De : Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] Envoy? : mercredi 3 octobre 2012 15:43 ? : Hervy Cyril Cc : R-help (r-help at r-project.org) Objet : Re: [R] How to limit memory on a server And your OS is? See the footer and the 'at a minimum' information the posting guide asks for. I think you are confusing 'memory' and 'RAM': the two concepts are distinct. But R is not a special case, and you do it the same way as you do this for any other process, by your OS facilities. On 03/10/2012 10:12, Hervy Cyril wrote:
Hello, In our structure, users connect to a server (64GB of memory) where they launch R. How can I limit the amount of RAM that could use a user. The function memory.limit(size=...) can limit the amount of memory but I would like users can't change this option in R. Is it possible? Thank you. Cyril Hervy [[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
On 04/10/2012 10:07, Hervy Cyril wrote:
I think R keeps all the data in RAM ? The function memory.limit() refers to the RAM size ? I will try to configure the OS.
You are still confused. No, memory.limit() refers to virtual memory, and a process on a tolerably recent OS does not even know if VM is mapped or not without using OS-specific system calls (which R does not). ?memory.limit talks about 'obtainable memory', not RAM. Because Windows manages VM poorly, R for Windows is set up to try to keep its VM usage less than an amount that is likely to be mapped at once. But you can alter that, and with a fast SSD it may be worthwhile to do so. It is not even true that 'R keeps all the data in' *memory*: that's the point of lazy-loading. R objects in packages (including most of R itself) are kept on disc databases until actually used.
Thanks. Best regards Cyril Hervy -----Message d'origine----- De : Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] Envoy? : mercredi 3 octobre 2012 17:22 ? : Hervy Cyril Cc : R-help (r-help at r-project.org) Objet : Re: [R] How to limit memory on a server On 03/10/2012 16:12, Hervy Cyril wrote:
My OS is a 64-bit Windows Server 2008 SP2 and I would like to limit RAM usage on the server.
Ask your sysadmins, as Duncan Murdoch advised. R only know about virtual memory usage, not RAM usage.
Thank you. Best regards Cyril Hervy -----Message d'origine----- De : Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] Envoy? : mercredi 3 octobre 2012 15:43 ? : Hervy Cyril Cc : R-help (r-help at r-project.org) Objet : Re: [R] How to limit memory on a server And your OS is? See the footer and the 'at a minimum' information the posting guide asks for. I think you are confusing 'memory' and 'RAM': the two concepts are distinct. But R is not a special case, and you do it the same way as you do this for any other process, by your OS facilities. On 03/10/2012 10:12, Hervy Cyril wrote:
Hello, In our structure, users connect to a server (64GB of memory) where they launch R. How can I limit the amount of RAM that could use a user. The function memory.limit(size=...) can limit the amount of memory but I would like users can't change this option in R. Is it possible? Thank you. Cyril Hervy [[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595