[stgt] tgt memory usage
fujita.tomonori at lab.ntt.co.jp
Wed Jun 19 09:29:38 CEST 2013
On Wed, 19 Jun 2013 00:27:37 -0700
Raj Singh <rajtpd at gmail.com> wrote:
> This is the first target and first LUN on this machine.
> I can perform the following command with no issues and they complete
> instantaneously (under a second with no to very little memory use):
> tgtadm --lld iscsi --mode target --op new --tid=1 --targetname
> tgtadm --lld iscsi --mode logicalunit --op new --tid 1 --lun 1 -b
> But when I perform the following command I run out of memory after 3 -
> 4 mins (there are no LUN's or Target's on this machine when I run this
> tgt-admin --update
> To fix this for now I upped the memory on my server from 2G to 12G.
> Now when I run the tgt-admin --update command it completes after 8 -
> 10 mins (during this time the memory consumed by tgt-admin goes to
> Not sure if this script should take up this much memory for starting a
> single lun and target.
Not sure what you want to do and I'm not familiar with tgt-admin
utils. You have a config file and try to update the config based on
> On Tue, Jun 18, 2013 at 8:59 PM, FUJITA Tomonori
> <fujita.tomonori at lab.ntt.co.jp> wrote:
>> On Tue, 18 Jun 2013 18:26:46 -0700
>> Raj Singh <rajtpd at gmail.com> wrote:
>>> I am running the following command and it looks like the memory used
>>> by tgt-admin spikes up to couple gigs and then the command exits with
>>> "Out of Memory". Is this normal?
>>> root at controller:~# tgt-admin --update
>>> Out of memory!
>>> I am running the following on a Ubuntu 2 vCPU, with 2 Gigs of memory:
>>> root at controller:~# uname -r
>>> root at controller:~# tgtd -V
>>> root at controller:~#
>> How many targets and luns do you set up?
> To unsubscribe from this list: send the line "unsubscribe stgt" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt