Thank you James.

Is there any specific way do you recommend using ramdisk? As raw device?

Regards,
Randeep

On Sun, Jul 24, 2016 at 11:48 AM, James Peach <jpe...@apache.org> wrote:

>
> > On Jul 24, 2016, at 2:18 PM, Randeep <randeep...@gmail.com> wrote:
> >
> > Hi all,
> >
> > I am trying to use RAMdisk for ats.
> >
> > Here is how I created RAMDISK
> > *mount -o size=20G -t tmpfs none /mnt/ramdisk/*
> >
> > And in storage.config I have specified it as below.
> > cat /opt/ats/etc/trafficserver/storage.config
> > /mnt/ramdisk* 20G*
> >
> > But every time I restart ats, I get the following warning.
> > [Jul 23 21:15:28.334] Server {0x2b9a5aba6380} WARNING: <Store.cc:528
> > (init)> not enough free space for cache directory '/mnt/ramdisk’
>
> I did a quick test and tmpfs doesn’t support any of the ioctl methods that
> we use to determine the block device size and IO parameters so you won’t be
> able to use this as a raw device.
>
> Adding it as a directory seems to work just fine…
>
> [root@fedora-23 trafficserver]# cat
> /opt/ats/etc/trafficserver/storage.config
> /mnt/ramdisk 20G
>
> [root@fedora-23 trafficserver]# ls -lh /mnt/ramdisk
> total 26M
> -rw-r--r-- 1 nobody nobody 20G Jul 23 23:15 cache.db
>
> > My question is, what is the right way to create ramdisk for ats and how
> we
> > need to specify it in the storage.config. (with or without size?)
> >
> > I checked in the documentation also. It doesn't have any information
> > regarding ramdisk. It would be great if someone can add it.
> >
> > --
> > Randeep
> > Mob: +919447831699[kerala]
> > Mob: +919880050349[B'lore]
> > http://twitter.com/Randeeppr
> > http://in.linkedin.com/in/randeeppr
> >
> >
> > [image: --]
> > Randeep Raman
> > [image: http://]about.me/Randeeppr
> > <http://about.me/Randeeppr>
>
>


-- 
Randeep
Mob: +919447831699[kerala]
Mob: +919880050349[B'lore]
http://twitter.com/Randeeppr
http://in.linkedin.com/in/randeeppr


[image: --]
Randeep Raman
[image: http://]about.me/Randeeppr
<http://about.me/Randeeppr>

Reply via email to