[stgt] tgt memory usage
FUJITA Tomonori
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:
> Fujita,
>
> 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
> volume-9c2637a7-1c47-41a7-89d3-86dddd8f9082
>
> tgtadm --lld iscsi --mode logicalunit --op new --tid 1 --lun 1 -b
> /dev/cinder-volumes/volume-9c2637a7-1c47-41a7-89d3-86dddd8f9082
>
>
> 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
> command):
>
> tgt-admin --update
> iqn.2010-10.org.openstack:volume-9c2637a7-1c47-41a7-89d3-86dddd8f9082
>
>
> 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
> 10G).
>
> 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
it?
>
> Regards,
>
> Raj
>
> 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
>>> iqn.2010-10.org.openstack:volume-36cc7df0-0030-4083-99c3-145fe28b7e4f
>>> Out of memory!
>>>
>>>
>>> I am running the following on a Ubuntu 2 vCPU, with 2 Gigs of memory:
>>>
>>> root at controller:~# uname -r
>>> 3.5.0-23-generic
>>> root at controller:~# tgtd -V
>>> 1.0.17
>>> root at controller:~#
>>
>> How many targets and luns do you set up?
>
>
>
> --
> Regards,
>
> -Raj
> --
> 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
mailing list