Thank you Glynn and all, <br><br>I have gathered your inputs and written down the lesson learned here: <br><a href="http://grass.osgeo.org/wiki/Large_raster_data_processing">http://grass.osgeo.org/wiki/Large_raster_data_processing</a><br>
Feel free to expand it.<br><br>Thanks,<br><br>madi<br><br><div class="gmail_quote">On Wed, Jul 18, 2012 at 8:24 PM, Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
Margherita Di Leo wrote:<br>
<br>
> If I understand it correctly, I can modify ulimit only if I have root<br>
> privileges, no way to do it with sudo, right?<br>
<br>
</div>Resource limits are per-process, and inherited. The "ulimit" command<br>
(which is a shell built-in) changes the limits for the current shell<br>
process; the new limit will be inherited by any child processes.<br>
<br>
On most Linux systems, resource limits are set on login by the<br>
pam_limits module according to the settings contained in<br>
/etc/security/limits.conf /etc/security/limits.d/*.conf.<br>
<br>
You should be able to edit those files if you have root privilege via<br>
sudo, but you will need to log in again before any changes take<br>
effect.<br>
<br>
To change the limits for an existing session, you may be able to use<br>
something like:<br>
<br>
        sudo bash<br>
        ulimit ...<br>
        su -c bash <username><br>
<br>
However, sudo will probably reset certain environment variables,<br>
particularly LD_LIBRARY_PATH, so you may need to reset those in the<br>
new shell.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><span style="color:rgb(102,102,102)">Dr. Margherita Di Leo</span><font color="#666666"><br></font><span style="color:rgb(102,102,102)"></span><br><br><br>