Skip to content

[BUG] linux-glibc2_31-x64 binary is excessively large (1.2 GB) #1206

@bkeryan

Description

@bkeryan

Bug Report

ni-grpc-device-server-linux-glibc2_31-x64.tar.gz is 336 MB:

Image

This is because the contained ni_grpc_device_server is 1.2 GB:

Image

Repro or Code Sample

Download the release artifact.

Expected Behavior

It should be a reasonable size.

Current Behavior

It's excessively large.

Possible Solution

Strip the server binary. This reduces the size to 42 MB, which is large but not excessive.

$ strip ni_grpc_device_server.stripped
$ ls -al ni_grpc_device_server.stripped
-rwxrwxrwx 1 bkeryan bkeryan 42968040 Oct 22 13:28 ni_grpc_device_server.stripped

Extract the debug symbols and distribute them in a separate, compressed release artifact.

There is probably a CMake way to do this.

Context

Reviewing a PR and I need to download the server binary to check something.

Your Environment

  • Operating system and version: N/A
  • All NI driver versions: N/A
  • grpc-device version: 2.13.0

AB#3442600

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions