|
From: | Tu Do |
Subject: | Re: GNU Global exhausts disk space |
Date: | Wed, 24 Sep 2014 00:21:21 +0700 |
Hi.
> But I wonder, why only 100 MB of Boost generates
> such a huge database.
The GTGAS database includes the image of tagged line.
And the boost header has a lot of very long lines.
You can make GTAGS smaller by using -c option of gtags.
generated with `gtags'
$ ls -l GTAGS
-rw-r--r-- 1 iwamoto iwamoto 2109267968 Sep 23 21:36 GTAGS
generated with `gtags -c'
$ ls -l GTAGS
-rw-r--r-- 1 iwamoto iwamoto 8306688 Sep 24 00:21 GTAGS
On Tue, 23 Sep 2014 20:40:20 +0700
--Tu Do <address@hidden> wrote:
> I got over 9.1 GB free space, but root is less than 1 GB. Yes, probably
> because /tmp is too small. But I wonder, why only 100 MB of Boost generates
> such a huge database. I tried in ony latest Boost and Global generates
> quickly and the tag database is less than 100MB; I generated the tas in
> libs/ directory inside Boost source code.
>
> On Tue, Sep 23, 2014 at 8:07 PM, Hideki IWAMOTO <address@hidden>
> wrote:
>
> > Hi.
> >
> > > - Extract boost.tar.gz archive.
> > > - Then run the command: gtags
> >
> > In my environment, gtags exited normally.
> > How many free space are there in /tmp of your machine?
> > Probably /tmp is too small for sort command to create temporary file.
> >
> > $ time gtags
> > 80.401u 31.641s 3:24.02 54.9% 0+0k 0+0io 2pf+0w
> > $ ls -l G*
> > -rw-r--r-- 1 iwamoto iwamoto 1753088 9月 23 21:36 GPATH
> > -rw-r--r-- 1 iwamoto iwamoto 29335552 9月 23 21:36 GRTAGS
> > -rw-r--r-- 1 iwamoto iwamoto 2109267968 9月 23 21:36 GTAGS
> >
> >
> > On Tue, 23 Sep 2014 18:18:08 +0700
> > Tu Do <address@hidden> wrote:
> >
> > > I tried to generate GTAGS database on Boost source code and then gtags
> > > keeps running forever, despite the source tree is only more than 100MB.
> > The
> > > attached file is the boost directory in my /usr/include installed from
> > > Ubuntu. Here are the step to reproduce:
> > >
> > > - Extract boost.tar.gz archive.
> > > - Then run the command: gtags
> > > - It keeps running forever until the OS pops a dialog box up saying that
> > > disk is out of space.
> > > - Then running gtags is terminated; the thing is, disk space is not
> > > actually consumed.
> > >
> > > If you cannot download the file from the email, you can download it here:
> > > http://www.mediafire.com/download/so40iih8ns2rpsz/boost.tar.gz
> >
> > --
> > Hideki IWAMOTO <address@hidden>
> >
> >
Hideki IWAMOTO <address@hidden>
[Prev in Thread] | Current Thread | [Next in Thread] |