Skip to content

Conversation

@Noremos
Copy link
Contributor

@Noremos Noremos commented Jan 16, 2025

No description provided.

@Noremos
Copy link
Contributor Author

Noremos commented Jan 16, 2025

This is a fix for #8391

@hvlad
Copy link
Member

hvlad commented Jan 18, 2025

Just to be sure: how this patch affects performance ? Did you compare restore time, for example ?

@Noremos
Copy link
Contributor Author

Noremos commented Jan 18, 2025

Just to be sure: how this patch affects performance ? Did you compare restore time, for example ?

I didn't measure it, to be honest. The changes affect background threads, so I didn’t think that it would somehow decrease noticeably. I will measure the performance as soon as I have the opportunity

@Noremos
Copy link
Contributor Author

Noremos commented Jan 20, 2025

Just to be sure: how this patch affects performance ? Did you compare restore time, for example ?

I have tested BR on a 1 GB database. It doesn't seem like there's any noticeable difference.


--- without fix:
time ./gbak -user SYSDBA -b soruce.fdb mybd_m.fbk
real    0m14,806s
user    0m12,665s
sys     0m0,951s

time ./gbak -user SYSDBA -c mybd_m.fbk ./mydb_m.fdb
real    0m18,429s
user    0m18,633s
sys     0m0,891s

--- with fix:
time ./gbak -user SYSDBA -b soruce.fdb mybd.fbk

real    0m14,550s
user    0m12,526s
sys     0m0,979s
time ./gbak -user SYSDBA -c mybd.fbk ./mydb.fdb

real    0m18,024s
user    0m18,108s
sys     0m0,919s


ll -h ./mydb.fdb
-rw-rw---- 1 art art 1,1G янв 20 11:09 ./mydb.fdb
ll -h ./mybd.fbk
-rw-rw-r-- 1 art art 865M янв 20 11:09 ./mybd.fbk


--without fix without -par 8
-- (run 3 times)
real    0m8,572s
user    0m23,811s
sys     0m1,782s

real    0m7,667s
user    0m23,901s
sys     0m1,623s

real    0m8,675s
user    0m23,499s
sys     0m1,819s

--with fix with -par 8
-- (run 3 times)

real    0m7,495s
user    0m22,909s
sys     0m1,618s


real    0m7,982s
user    0m22,490s
sys     0m1,753s

real    0m7,337s
user    0m24,557s
sys     0m1,454s

@dyemanov dyemanov merged commit 9791f8d into FirebirdSQL:master Jan 20, 2025
24 checks passed
@dyemanov
Copy link
Member

What versions should it be backported into? Only v5 or older versions are also affected?

@Noremos
Copy link
Contributor Author

Noremos commented Jan 20, 2025

What versions should it be backported into? Only v5 or older versions are also affected?

Yes, the bug was discovered in version 3.0.

dyemanov pushed a commit that referenced this pull request Jan 20, 2025
…8392)

Co-authored-by: Artyom Abakumov <artyom.abakumov@red-soft.ru>
dyemanov pushed a commit that referenced this pull request Jan 20, 2025
…8392)

Co-authored-by: Artyom Abakumov <artyom.abakumov@red-soft.ru>
dyemanov pushed a commit that referenced this pull request Jan 20, 2025
…8392)

Co-authored-by: Artyom Abakumov <artyom.abakumov@red-soft.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants