From: Bo Yang on
Hi,
I want to install qt in my Dreamhost Linux host. As you know, any
hosting service will limit its users resource such as CPU and memory.
When linking QT, it will cause the ld linker more than 400M memory,
and then it get killed by the process monitor of Dreamhost...
I try to google for hours without finding any real answer for my
problem. I am searching for Linux command utility which can run a
program under certain amount of physical memory. I mean, I can run it
as:

memory-limit -m 200M ld ld-args ...

And then, ld will run under 200M physical memory, but this does not
mean ld can't allocate more than 200M. When ld allocate more than
200M, the physical memory will not increase, and it will use swap
disk. And the RES part of ld's memory will not exceed 200M...

I know, the feature I need sounds like a virtual machine, I am
wondering whether KVM can provide such feature. I am really wondering
whether there is such a tool... :) Please help if you know something
about this. Thanks!

Regards!
Bo
From: mop2 on
On Sun, 17 Jan 2010 09:16:58 -0200, Bo Yang <struggleyb(a)gmail.com> wrote:

> Hi,
> I want to install qt in my Dreamhost Linux host. As you know, any
> hosting service will limit its users resource such as CPU and memory.
> When linking QT, it will cause the ld linker more than 400M memory,
> and then it get killed by the process monitor of Dreamhost...
> I try to google for hours without finding any real answer for my
> problem. I am searching for Linux command utility which can run a
> program under certain amount of physical memory. I mean, I can run it
> as:
>
> memory-limit -m 200M ld ld-args ...
>
> And then, ld will run under 200M physical memory, but this does not
> mean ld can't allocate more than 200M. When ld allocate more than
> 200M, the physical memory will not increase, and it will use swap
> disk. And the RES part of ld's memory will not exceed 200M...
>
> I know, the feature I need sounds like a virtual machine, I am
> wondering whether KVM can provide such feature. I am really wondering
> whether there is such a tool... :) Please help if you know something
> about this. Thanks!


See if this is applicable in that case:

ulimit -a # for show current values

man bash # for more details
From: mop2 on
On Sun, 17 Jan 2010 12:26:22 -0200, mop2 <invalid(a)mail.address> wrote:

> On Sun, 17 Jan 2010 09:16:58 -0200, Bo Yang <struggleyb(a)gmail.com> wrote:
>
>> Hi,
>> I want to install qt in my Dreamhost Linux host. As you know, any
>> hosting service will limit its users resource such as CPU and memory.
>> When linking QT, it will cause the ld linker more than 400M memory,
>> and then it get killed by the process monitor of Dreamhost...
>> I try to google for hours without finding any real answer for my
>> problem. I am searching for Linux command utility which can run a
>> program under certain amount of physical memory. I mean, I can run it
>> as:
>>
>> memory-limit -m 200M ld ld-args ...
>>
>> And then, ld will run under 200M physical memory, but this does not
>> mean ld can't allocate more than 200M. When ld allocate more than
>> 200M, the physical memory will not increase, and it will use swap
>> disk. And the RES part of ld's memory will not exceed 200M...
>>
>> I know, the feature I need sounds like a virtual machine, I am
>> wondering whether KVM can provide such feature. I am really wondering
>> whether there is such a tool... :) Please help if you know something
>> about this. Thanks!
>
>
> See if this is applicable in that case:
>
> ulimit -a # for show current values
>
> man bash # for more details
>

And obviously, if applicable, see also:
man ld
From: Bill Marcum on
On 2010-01-17, Bo Yang <struggleyb(a)gmail.com> wrote:
> Hi,
> I want to install qt in my Dreamhost Linux host. As you know, any
> hosting service will limit its users resource such as CPU and memory.
> When linking QT, it will cause the ld linker more than 400M memory,
> and then it get killed by the process monitor of Dreamhost...

Instead of installing the qt source code, couldn't you use yum or apt-get
to install the package for whichever linux distro runs on your host?

From: Kaz Kylheku on
On 2010-01-17, Bo Yang <struggleyb(a)gmail.com> wrote:
> Hi,
> I want to install qt in my Dreamhost Linux host. As you know, any
> hosting service will limit its users resource such as CPU and memory.
> When linking QT, it will cause the ld linker more than 400M memory,
> and then it get killed by the process monitor of Dreamhost...

Most software on the planet runs on a different machine from that on
which it was built. You might want to investigate this powerful concept.

Why don't you install the same Linux distro on a virtual machine,
and compile whatever you want, then transfer the binaries to the
memory-restricted target?

> I try to google for hours without finding any real answer for my
> problem.

You should know that Google does not index between keyboard and chair.
 | 
Pages: 1
Prev: Control+Backspace (readline)
Next: on failure