Commit Graph

125 Commits

Author SHA1 Message Date
henrik karlsson
b3e84767c7 [UBA]
* Added support for PagingFiles registry key containing drive letter '?'. Not sure exactly what this mean except that it can exist if system automatically manage page files for all drives. We resort to use first entry in ExistingPageFiles registry key to figure out drive

[CL 31198385 by henrik karlsson in ue5-main branch]
2024-02-05 19:09:12 -05:00
sergio gardeazabal
9728fc156b [UBA] Disable power throttling in created processes to ensure P-Cores are preferred over E-Cores on Intel Hybrid architectures platforms
#jira UE-205966

#rb henrik.karlsson

[CL 31193922 by sergio gardeazabal in ue5-main branch]
2024-02-05 17:56:36 -05:00
henrik karlsson
b4552f4816 [UBA]
* Fixed logic calculating max page file size. System-managed page file logic was wrong giving calculations that were way to high

[CL 31161437 by henrik karlsson in ue5-main branch]
2024-02-03 23:55:33 -05:00
henrik karlsson
03e44346be [UBA]
* Fixed bug where error messages written to trace stream could be bigger than max size for a write scope. Previous number was 4k, now changed to 256k instead (I don't expect an individual error message to be bigger than 256k at least!)

[CL 31135204 by henrik karlsson in ue5-main branch]
2024-02-02 14:32:34 -05:00
henrik karlsson
b35413a335 [UBA]
* Proper fix of bug where code could write 8 bytes outside memory allocation

[CL 31127482 by henrik karlsson in ue5-main branch]
2024-02-02 11:27:44 -05:00
henrik karlsson
85b847a049 [Uba]
* Fixed bug in storage client code that directly decompress network data to disk/mem. It could write outside buffer by 8 bytes
* Added UbaCli -checkcas2  .. this codepath creates a storage server and client and networks all cas files over.. just to check so code paths properly work
* Fixed UbaCli -checkaws bug

[CL 31118503 by henrik karlsson in ue5-main branch]
2024-02-02 02:00:29 -05:00
henrik karlsson
59cd3b1849 [UBA]
* Added support for custom text in trace/visualizer... can be used to report things like horde status etc

[CL 31118070 by henrik karlsson in ue5-main branch]
2024-02-02 00:30:28 -05:00
henrik karlsson
85837b6ef5 [UBA]
* Fixed so renaming from castemp to real destination handle cross-device

[CL 31058118 by henrik karlsson in ue5-main branch]
2024-01-31 14:16:07 -05:00
henrik karlsson
eee33ba668 [UBA]
* Fixed so stdout/err is redirected to pipe on detoured processes on linux/mac.. this should fix so errors are visualized in the right place
* Added -nostdout to UbaCli to be able to check that redirected stdout/err works
* Added version for process messages to catch issues where ppl have old ubaagent.exe but new ubadetours.dll
* Added capacity parameter to FixPath and added asserts to check that we never write outside capacity
* Fixed code creating g_virtualApplication buffer.
* Disabled asserts for mac non debug builds
* Removed detoured write/fwrite for posix now when we instead redirect stdout/err
* Enabled some unit tests for linux now when they work as intended regarding redirected stdout/err

[CL 31029918 by henrik karlsson in ue5-main branch]
2024-01-30 19:05:51 -05:00
henrik karlsson
0eaf4b8111 [UBA]
* Fixed some error handling for posix
* Improved some logging
* Disabled some unit tests on linux because they always fail

[CL 30991796 by henrik karlsson in ue5-main branch]
2024-01-30 02:17:34 -05:00
henrik karlsson
3ea6ef91db [UBA]
* Removed error on linux for failing poll call

[CL 30987771 by henrik karlsson in ue5-main branch]
2024-01-29 23:59:19 -05:00
zack neyland
505cac5c83 UBA: Add if some defs around POLLUP for platform differences
[CL 30983584 by zack neyland in ue5-main branch]
2024-01-29 21:01:39 -05:00
zack neyland
59077f46f4 UBA: Close fds when done with polling to stop leaking on MacOS.
[CL 30980705 by zack neyland in ue5-main branch]
2024-01-29 18:45:46 -05:00
henrik karlsson
c862a322c7 [UBA]
* Added lock around socket send for windows to see if it will resolve some of the crazy socket send times on the farm

[CL 30976001 by henrik karlsson in ue5-main branch]
2024-01-29 15:06:05 -05:00
henrik karlsson
89dbbcf0c2 [UBA]
* Removed realpath test for linux because test machines do not have clang installed

[CL 30972943 by henrik karlsson in ue5-main branch]
2024-01-29 12:37:43 -05:00
henrik karlsson
0d51a68c53 [Uba]
* Fixed file descriptor leak when running native processes on posix platforms
* Removed hangup test on poll for pipe file descriptors since it exited to early and missed reads

[CL 30963156 by henrik karlsson in ue5-main branch]
2024-01-29 02:13:15 -05:00
henrik karlsson
1d1bfcb383 [Uba]
* Added hint string to CreateFileMapping to be able to have better errors

[CL 30895079 by henrik karlsson in ue5-main branch]
2024-01-25 14:24:26 -05:00
josh adams
2c6d16634e Fixing working dir on Mac
#rb henrik.karlsson

[CL 30891145 by josh adams in ue5-main branch]
2024-01-25 12:31:40 -05:00
henrik karlsson
e72e0d0e9a [Uba]
* Added retry and better error description when writing byte to create size of file mapping on posix

[CL 30889356 by henrik karlsson in ue5-main branch]
2024-01-25 11:42:14 -05:00
zack neyland
c10257601e UBA: Bump cmdline limit to 64k
[CL 30888128 by zack neyland in ue5-main branch]
2024-01-25 11:10:13 -05:00
henrik karlsson
def11cc5d0 [UBA]
* Improved error handling for setpriority even more. There is a risk that a non-detoured process have exited already when we get to this function

[CL 30878827 by henrik karlsson in ue5-main branch]
2024-01-25 01:12:09 -05:00
henrik karlsson
29914bf077 [UBA]
* Fixed so if setpriority fails on linux because of not having permissions we don't fail the build

[CL 30878645 by henrik karlsson in ue5-main branch]
2024-01-25 01:03:44 -05:00
henrik karlsson
7eaa01d676 [Uba]
* Fixed linux unit test errors

[CL 30878478 by henrik karlsson in ue5-main branch]
2024-01-25 00:54:43 -05:00
henrik karlsson
abae032917 [UBA]
* Improved error description when failing to create pipe on posix

[CL 30875937 by henrik karlsson in ue5-main branch]
2024-01-24 22:22:28 -05:00
henrik karlsson
659c4c9101 [UBA]
* Changed so com memory is not split up in read and write since they never overlap.. so both read and write can use all the memory

[CL 30871523 by henrik karlsson in ue5-main branch]
2024-01-24 20:33:10 -05:00