Project

General

Profile

Bug #47459

Restore ports build optimization while retaining debug symbols

Added by Joshua Sirrine 10 months ago. Updated 6 months ago.

Status:
Done
Priority:
No priority
Assignee:
Alexander Motin
Category:
OS
Target version:
Seen in:
Severity:
Low Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

This ticket is to track backporting optimizations to 11.1-U7.


Related issues

Related to FreeNAS - Bug #39932: Restore ports build optimization while retaining debug symbolsDone

Associated revisions

Revision 7d632fc1 (diff)
Added by Alexander Motin 8 months ago

Restore build optimization, trying to keep debug symbols.

Ticket: #47459
(cherry picked from commit 69d0c7806708e77d9b3f2299069a860dd9e73dac)

Revision 794d647f (diff)
Added by Alexander Motin 8 months ago

Polish debug information generation for base OS.

Modern FreeBSD can generate separate debug information files on its
own for both kernel and world. Use it where possible, and do things
manually only for ports, since they have no such functionality AFAIK.

Before this the debug package was no including kernel symbols at all.

Ticket: #47459
(cherry picked from commit a4eb4d7c90f14ca896ea915289fb67b4d0469ab2)

Revision be100669 (diff)
Added by Alexander Motin 8 months ago

Remove unneeded nestind level (world) in debug package.

Ticket: #47459
(cherry picked from commit a09755ce1e306fe34d4ea36c4fe1e794693ba12c)

Revision 9f8c80db (diff)
Added by Alexander Motin 8 months ago

Remove one more debug enable from Samba.

After this change I do finally see that binary is getting smaller,
while there are still some debug symbols produced.

Ticket: #47459
(cherry picked from commit 2d29b0793ce376859833b90b5adf2c27167044c9)

Revision 9b729288 (diff)
Added by Alexander Motin 8 months ago

Set DESTDIR=${STAGEDIR} instead of prepending ${STAGEDIR} to paths. (#1810)

It makes freenas-sysctl install debug files in proper place.

Ticket: #47459
(cherry picked from commit 665e5797502f09d90e3288dcd29f2e4b62e57829)

Revision d6f21cf9 (diff)
Added by Alexander Motin 8 months ago

Set DESTDIR=${STAGEDIR} instead of prepending ${STAGEDIR} to paths. (#1810)

It makes freenas-sysctl install debug files in proper place.

Ticket: #47459
(cherry picked from commit 665e5797502f09d90e3288dcd29f2e4b62e57829)

History

#1 Updated by Dru Lavigne 10 months ago

  • Project changed from TrueNAS to FreeNAS
  • Category changed from OS to OS
  • Assignee changed from Bill O'Hanlon to Alexander Motin
  • Target version changed from Backlog to TrueNAS 11.1-U6.2
  • Migration Needed deleted (No)
  • Hide from ChangeLog deleted (No)
  • Support Department Priority deleted (0)

#2 Updated by Alexander Motin 10 months ago

  • Related to Bug #39932: Restore ports build optimization while retaining debug symbols added

#3 Updated by Alexander Motin 10 months ago

  • Status changed from Unscreened to Blocked
  • Severity changed from New to Low Medium
  • Reason for Blocked set to Waiting for feedback

#5 Updated by Alexander Motin 8 months ago

  • Status changed from Blocked to In Progress
  • Reason for Blocked deleted (Waiting for feedback)

#6 Updated by Dru Lavigne 8 months ago

  • Subject changed from optimizations not included during build, add to 11.1-U7 to Restore ports build optimization while retaining debug symbols

#7 Updated by Bug Clerk 8 months ago

  • Status changed from In Progress to Ready for Testing

#8 Updated by Dru Lavigne 8 months ago

  • Needs Merging changed from Yes to No

#9 Updated by Dru Lavigne 8 months ago

  • Target version changed from TrueNAS 11.1-U6.2 to 11.1-U7

#10 Updated by Ryan McKenzie 6 months ago

Test passed for FreeNAS. The rsync binary built has the correct size for non-debug build and it is achieving good bandwidth of over 100MiB/s:

root@freenas:~ # cat /etc/version 
FreeNAS-11.1-U7-INTERNAL2 (a1b242766)
root@freenas:~ # ls -lh /usr/local/bin/rsync
-rwxr-xr-x  1 root  wheel   462K Jan 10 10:41 /usr/local/bin/rsync
root@freenas:~ # ls -lh FreeNAS-11.2-RELEASE.iso 
-rw-r--r--  1 root  wheel   575M Jan 10 11:06 FreeNAS-11.2-RELEASE.iso
root@freenas:~ # rsync -avP FreeNAS-11.2-RELEASE.iso /mnt/hdriveb/
sending incremental file list
FreeNAS-11.2-RELEASE.iso
    603,410,432 100%  127.70MB/s    0:00:04 (xfr#1, to-chk=0/1)

Now to test with TrueNAS

#11 Updated by Ryan McKenzie 6 months ago

  • Status changed from Ready for Testing to Passed Testing

Test also passed with TrueNAS:

root@truenas:~ # cat /etc/version 
TrueNAS-11.1-U7-INTERNAL3 (a1b242766)
root@truenas:~ # ls -lh /usr/local/bin/rsync
-rwxr-xr-x  1 root  wheel   462K Jan  4 06:54 /usr/local/bin/rsync
root@truenas:~ # ls -lh FreeNAS-11.2-RELEASE.iso
-rw-r--r--  1 root  wheel   575M Jan 10 08:29 FreeNAS-11.2-RELEASE.iso
root@truenas:~ # rsync -avP FreeNAS-11.2-RELEASE.iso /mnt/hdriveb/
sending incremental file list
created directory /mnt/hdriveb
FreeNAS-11.2-RELEASE.iso
    603,410,432 100%  165.64MB/s    0:00:03 (xfr#1, to-chk=0/1)

#12 Updated by Dru Lavigne 6 months ago

  • Status changed from Passed Testing to Done
  • Needs QA changed from Yes to No

#13 Updated by Dru Lavigne 6 months ago

  • Description updated (diff)

Also available in: Atom PDF