[Mesa-users] libgl1-mesa-dri size question
Ruslan Kabatsayev
b7.10110111 at gmail.com
Sat Jan 6 21:46:23 UTC 2018
On 7 January 2018 at 00:00, Jon Peterson <b.0110100001101001 at gmail.com> wrote:
> is this what you were asking about?
>
>
>
> -rw-r--r-- 1 root root 7314900 Jul 26 10:03 etnaviv_dri.so
>
> -rw-r--r-- 1 root root 7314900 Jul 26 10:03 imx-drm_dri.so
>
> -rw-r--r-- 1 root root 7314900 Jul 26 10:03 kgsl_dri.so
>
> -rw-r--r-- 1 root root 7314900 Jul 26 10:03 kms_swrast_dri.so
>
> -rw-r--r-- 1 root root 7314900 Jul 26 10:03 msm_dri.so
>
> -rw-r--r-- 1 root root 7314900 Jul 26 10:03 nouveau_dri.so
>
> -rw-r--r-- 1 root root 3030340 Jul 26 10:03 nouveau_vieux_dri.so
>
> -rw-r--r-- 1 root root 3030340 Jul 26 10:03 r200_dri.so
>
> -rw-r--r-- 1 root root 7314900 Jul 26 10:03 r300_dri.so
>
> -rw-r--r-- 1 root root 7314900 Jul 26 10:03 r600_dri.so
>
> -rw-r--r-- 1 root root 3030340 Jul 26 10:03 radeon_dri.so
>
> -rw-r--r-- 1 root root 7314900 Jul 26 10:03 radeonsi_dri.so
>
> -rw-r--r-- 1 root root 7314900 Jul 26 10:03 swrast_dri.so
>
> -rw-r--r-- 1 root root 7314900 Jul 26 10:03 vc4_dri.so
>
> -rw-r--r-- 1 root root 7314900 Jul 26 10:03 virtio_gpu_dri.so
>
> -rw-r--r-- 1 root root 7314900 Jul 26 10:03 vmwgfx_dri.so
Yes. If you cd into that directory and do `sha1sum * | cut -f 1 -d ' '
| sort -u`, you'll see that there are only two different files. On my
machine, after I extract the data.tar.xz inside the deb downloaded
from packages.debian.org, I see the following:
-rw-r--r-- 11 ruslan users 6875452 2017-03-21 16:02 kgsl_dri.so
-rw-r--r-- 11 ruslan users 6875452 2017-03-21 16:02 kms_swrast_dri.so
-rw-r--r-- 11 ruslan users 6875452 2017-03-21 16:02 msm_dri.so
-rw-r--r-- 11 ruslan users 6875452 2017-03-21 16:02 nouveau_dri.so
-rw-r--r-- 3 ruslan users 2952208 2017-03-21 16:02 nouveau_vieux_dri.so
-rw-r--r-- 3 ruslan users 2952208 2017-03-21 16:02 r200_dri.so
-rw-r--r-- 11 ruslan users 6875452 2017-03-21 16:02 r300_dri.so
-rw-r--r-- 11 ruslan users 6875452 2017-03-21 16:02 r600_dri.so
-rw-r--r-- 3 ruslan users 2952208 2017-03-21 16:02 radeon_dri.so
-rw-r--r-- 11 ruslan users 6875452 2017-03-21 16:02 radeonsi_dri.so
-rw-r--r-- 11 ruslan users 6875452 2017-03-21 16:02 swrast_dri.so
-rw-r--r-- 11 ruslan users 6875452 2017-03-21 16:02 vc4_dri.so
-rw-r--r-- 11 ruslan users 6875452 2017-03-21 16:02 virtio_gpu_dri.so
-rw-r--r-- 11 ruslan users 6875452 2017-03-21 16:02 vmwgfx_dri.so
Notice the 11 hard links to one set of files and 3 to the other. Thus
`du -sch .` executed inside this directory only gives me only 9.4 MiB,
unlike your list, which would give about 99.4 MiB because each file is
copied anew.
Also note that the Jessie package is also not that small if you copy
the files instead of hard-linking. I suspect it may be really a bug
introduced in Debian Stretch — either somewhere in dpkg or maybe in
tar if your list is the result after dpkg/apt-get install.
You can check if the bug is in tar or not: try extracting data.tar.xz
inside the deb manually (i.e. using `tar xf data.tar.xz`) and get
refcounts of 1, then it must be a new bug in tar. For reference, my
GNU tar 1.26 works correctly.
>
>
>
>
>
> -----Original Message-----
>
> From: Ruslan Kabatsayev [mailto:b7.10110111 at gmail.com]
>
> Sent: Saturday, January 6, 2018 1:18 PM
>
> To: jonhp19 at gmail.com
>
> Cc: mesa-users at lists.freedesktop.org
>
> Subject: Re: [Mesa-users] libgl1-mesa-dri size question
>
>
>
> Hi,
>
>
>
> On 6 January 2018 at 15:37, <jonhp19 at gmail.com> wrote:
>
>> Hi, this is probably a stupid question but I am working with small
>
>> embedded systems running Debian linux that are accessed by vnc clients.
>
>>
>
>> I noticed recently that for armhf:
>
>>
>
>> Jessie (10.3.2-1+deb8u1) is 7,701KB
>
>>
>
>> Stretch (13.0.6-1 and others) is 85,582KB documented; measures
>
>> 101,810KB on one system (not sure of the version.)
>
>>
>
>> For Debian users that is at least a 77,001KB increase between Releases
>
>> 8 and 9.
>
>
>
> Have you checked that it really takes that much space? Looking at the
> contents of the archives, I failed to see why that would be so. It looks
> like a package manager bug to me that such a large size is listed.
>
>
>
>>
>
>> For Intel powered towers and laptops, that probably isn’t a problem.
>
>>
>
>> For small embedded systems, it’s a fairly significant hit.
>
>>
>
>> So my question, from a user perspective (not a graphics application
>
>> developer),
>
>>
>
>> Is there anything that I can do to reduce the install size hit?
>
>>
>
>> Thanks, Jon
>
>>
>
>>
>
>> _______________________________________________
>
>> mesa-users mailing list
>
>> mesa-users at lists.freedesktop.org
>
>> https://lists.freedesktop.org/mailman/listinfo/mesa-users
>
>>
>
>
>
> Regards,
>
> Ruslan
More information about the mesa-users
mailing list