-
Couldn't load subscription status.
- Fork 293
merge xapi-rrd #5383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
psafont
merged 182 commits into
xapi-project:master
from
edwintorok:private/edvint/merge-xapi-rrd
Jan 31, 2024
Merged
merge xapi-rrd #5383
psafont
merged 182 commits into
xapi-project:master
from
edwintorok:private/edvint/merge-xapi-rrd
Jan 31, 2024
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: John Else <john.else@citrix.com>
Signed-off-by: John Else <john.else@citrix.com>
Signed-off-by: John Else <john.else@citrix.com>
Signed-off-by: John Else <john.else@citrix.com>
Signed-off-by: John Else <john.else@citrix.com>
Signed-off-by: John Else <john.else@citrix.com>
Signed-off-by: John Else <john.else@citrix.com>
Previously we temporarily allocated an enormous data structure in memory with partially applied functions all over the place. Now we don't. This commit also adds a couple of test programs and some helper functions to Rrd (of_file and to_file) and removes some dead code. Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
CA-107919: Reduce memory usage when writing large RRDs.
Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Add standard files, make initial release
Imported from xen-api.git f35f24e Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com> Imported-by: John Else <john.else@citrix.com>
CA-102285: Use the stream API to read the XML RRD file.
(because they don't create any artifacts whose timestamps are tracked by make) Signed-off-by: David Scott <dave.scott@citrix.com>
Fix build on OS X
Signed-off-by: David Scott <dave.scott@citrix.com>
Release 0.9.1
Only this repo needs the Fring module. Signed-off-by: David Scott <dave.scott@citrix.com>
Signed-off-by: David Scott <dave.scott@citrix.com>
Signed-off-by: David Scott <dave.scott@citrix.com>
Signed-off-by: David Scott <dave.scott@citrix.com>
Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Most of it was unused or was duplicated code from xapi_stdext, moved the little code useful for testing into the testing module, which now uses stdext functions. Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Remove duplicated and unused code around file descriptors and (de)serialization
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
On the perf runs I made xcp-rrdd was spending almost 60% of the time in this function, due to the polymorphic compare if List.assoc. Instead of list, use maps with string comparison to avoid most of the cost, then incur the time once instead of twice. I elected to not change the interface of the function since most of the time building the associative list was done in an ad-hoc way anyway, so it can be built here instead Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
There are two issues that are worked around here: - Because the function doesn't own the file descriptor, the channel couldn't be closed. When this was used on a socket, it could have been closed and forced an error on the flush, never releasing the memory - Because the channel is kept alive, and poiting to an FD, reusing the FD will lead to writing data to an unrelated file / socket Duplicating the file descriptor allows the function to control the whole life-cycle of the underlying FD and be able to close it, triggering it to be GC'd Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
There was no int64 function before, and float were handled in two different ways: turning them into string with 2 decimals places, or using a conversion function that handles NaN and infinities, now all floats are treated with the latter one. All numbers, like before, are serialized as strings to ensure the clients treat them consistently Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
The ad-hoc generator was not generating valid JSON Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
The comparison logic of non-normal float numbers was upstreamed years ago, the code can now use it straight away. Also added the values to the fring comparator to more easily see all the values being compared when there's a failure Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
Instead raise the semantically correct No_RRA_available. There's one last List.hd in the code, but it's correctly guarded so it cannot ever be used with an empty list. Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
lib: remove Failure "hd" exceptions
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
Signed-off-by: Edwin Török <edwin.torok@cloud.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For easier reviewing, but this is already part of #5378