HaoranYi
669bc43bcd
Buffer account's fields for hash ( #33788 )
...
* buffer accounts field for hash
* use smallvec to allocate hash buffer on stack
* sort deps
* more opt
* clippy
---------
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-10-23 09:48:17 -05:00
Jeff Washington (jwash)
a41b24f185
fix some ancient stats ( #33791 )
2023-10-23 07:23:47 -07:00
Jeff Washington (jwash)
34103e0913
typo in variable name ( #33801 )
2023-10-23 07:23:11 -07:00
Jeff Washington (jwash)
e13756133a
ancient: add many_refs_this_is_newest_alive ( #33741 )
...
* add many_refs_this_is_newest_alive
* fix pathological case, add comments
* add log
* update comments
* add log when we fail to pack
* use with_capacity
* fix log comment
* clippy
2023-10-20 09:55:37 -07:00
Brooks
ce8ad77373
Uses AccountHash in AppendVec ( #33764 )
2023-10-19 17:38:09 -04:00
Brooks
0fcc0a0941
Returns AccountHash from get_filler_account() ( #33758 )
2023-10-18 20:29:40 -04:00
Brooks
1045548606
Uses AccountHash in StorableAccountsWithHashesAndWriteVersions ( #33751 )
2023-10-18 18:58:19 -04:00
Jeff Washington (jwash)
56a7485998
log ancient stats each time we run ( #33730 )
2023-10-17 14:41:23 -07:00
HaoranYi
673a38c892
move timer after early exit ( #33732 )
...
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-10-17 15:20:29 -05:00
HaoranYi
f178975185
typo ( #33734 )
...
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-10-17 14:45:17 -05:00
Jeff Washington (jwash)
5de9163625
add metric for ancient can't move slots ( #33713 )
...
* add metric for ancient can't move slots
* rename
* fix erors in replacing text
* rename
2023-10-17 08:34:18 -07:00
Jeff Washington (jwash)
d948e5bf69
ancient shrink on its own cadence ( #33712 )
2023-10-16 10:06:20 -07:00
Jeff Washington (jwash)
c354879a3f
stop padding new append vecs to page size ( #33658 )
...
* stop padding new append vecs to page size
* fix test
* fix another test
* for creating test accounts, allocate larger like we used to
2023-10-12 07:11:20 -07:00
steviez
982d29cf60
Revert "stop padding new append vecs to page size ( #33607 )" ( #33634 )
...
This reverts commit b7962a3610
.
2023-10-10 14:43:52 -05:00
Jeff Washington (jwash)
b7962a3610
stop padding new append vecs to page size ( #33607 )
...
* stop padding new append vecs to page size
* for creating test accounts, allocate larger like we used to
2023-10-10 07:03:37 -07:00
Jeff Washington (jwash)
6c7d3c8aeb
remove redundant page_align ( #33608 )
2023-10-10 07:02:47 -07:00
Brooks
fc73813db2
Adds AccountHash newtype ( #33597 )
2023-10-09 16:00:52 -04:00
Jeff Washington (jwash)
052677595c
in hash calc, delete old cache files that will not be used earlier ( #33432 )
...
* in hash calc, delete old cache files that will not be used earlier
* only delete if supposed to
* fmt
2023-10-09 11:47:39 -07:00
Brooks
c924719040
Removes hash param from AccountsCache::store() ( #33598 )
2023-10-09 18:16:15 +00:00
Brooks
c66af12bdb
Uses `IntSet` for `RemoveUnrootedSlotsSynchronization::slots_under_contention` ( #33530 )
2023-10-04 16:34:18 -04:00
Brooks
3b93041401
Uses `IntSet` for dead slots ( #33529 )
2023-10-04 16:21:44 -04:00
Brooks
befc903993
Uses `IntSet` in AccountsDb::calc_delete_dependencies() ( #33528 )
2023-10-04 16:21:06 -04:00
Brooks
d41fa346cc
Uses `IntSet` for `ShrinkCandidates` ( #33522 )
2023-10-04 13:07:35 -04:00
Brooks
0e9e91c65e
Drops the shrink_candidate_slots lock after done inserting ( #33459 )
2023-09-29 16:58:55 +00:00
Brooks
b81ff5d654
Fixup the metrics for remove_dead_accounts_shrink_us ( #33458 )
2023-09-29 16:04:33 +00:00
HaoranYi
6ea51280dd
Move sort timer out of loop ( #33448 )
...
move sort timer out of loop
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-09-28 20:10:41 -05:00
Brooks
9f6f532535
`flush_slot_cache_with_clean()` takes a single Slot ( #33413 )
2023-09-26 15:38:37 -04:00
Jeff Washington (jwash)
a9b0fb492b
split hash calc ancient slot boundary to allow for ancient shrinking … ( #33216 )
...
split hash calc ancient slot boundary to allow for ancient shrinking to be behind
2023-09-26 07:27:50 -07:00
Brooks
23ad476ffb
Removes unused `Versioned` trait ( #33360 )
2023-09-25 17:18:38 -04:00
Jeff Washington (jwash)
40f536010f
visit_duplicate_pubkeys_during_startup uses scan ( #33397 )
2023-09-25 12:48:29 -07:00
Trent Nelson
7c545b0ae9
bump rust stable to 1.72.1 ( #33333 )
...
* bump rust stable to 1.72.1
* bump rust nightly to 2023-09-20
* fix nightly lint -- unused doc comment
-- rustdoc does not generate documentation for expression fields
* fix nightly lint -- unnecessarily eager cloning of iterator items
* fix nightly lint -- loop never actually loops
2023-09-20 23:53:36 -06:00
Jeff Washington (jwash)
17c3930bc8
in gen index, stop using big hashmap ( #33252 )
...
* in gen index, stop using big hashmap
* update accounts_data_len
* remove approx_stored_count
2023-09-18 11:13:18 -07:00
Jeff Washington (jwash)
402981e3c1
cleanup test ( #33291 )
2023-09-18 10:59:42 -07:00
Jeff Washington (jwash)
27caf4d1d2
add test for duplicates in generate_index and fix approx stored count ( #33290 )
...
add test
2023-09-18 09:46:52 -07:00
steviez
9e11ae6275
Make program owners a const array instead of Vec<_> ( #33275 )
...
The program owners pubkeys are constant, no need to reconstruct the
Vec<Pubkey> and Vec<&Pubkey> each time this function runs (every time we
execute transactions).
2023-09-18 10:59:03 -05:00
Brooks
f77b3d9389
Derives Pod for CalculateHashIntermediate ( #33267 )
2023-09-15 12:47:38 -04:00
Jeff Washington (jwash)
886eabd74d
gen idx: refactor StorageSizeAndCount population ( #33244 )
2023-09-14 07:53:05 -07:00
Jeff Washington (jwash)
602f0f6ecb
generate index: fn arg: &Slot -> Slot ( #33229 )
...
fn arg: &Slot -> Slot
2023-09-13 14:14:30 -07:00
Jeff Washington (jwash)
c2bf2a969d
remove unused metrics ( #33241 )
2023-09-13 14:14:10 -07:00
Jeff Washington (jwash)
cb310a310a
set approx store count at generate index time ( #33240 )
2023-09-13 14:13:46 -07:00
Jeff Washington (jwash)
093ae61e85
single pass through each storage to populate info ( #33227 )
2023-09-13 12:37:01 -07:00
Jeff Washington (jwash)
3ffd78f2d7
add comments ( #33226 )
2023-09-12 13:51:27 -07:00
Brooks
21e7f98b3a
Uses hex for the hash in accounts hash cache file names ( #33196 )
2023-09-12 11:26:08 -04:00
Brooks
c61ee20b44
Transient accounts hash cache dir is unnecessary ( #33181 )
2023-09-12 11:23:07 -04:00
Brooks
09936aac0e
Removes `new()` from POD CalculateHashIntermediate and CumulativeOffset ( #33211 )
2023-09-11 22:33:25 +00:00
Brooks
6298c6c31e
Shares accounts hash cache data between full and incremental ( #33164 )
2023-09-11 15:55:48 -04:00
Jeff Washington (jwash)
a145ade564
stat for time spent copying generate index contents ( #33187 )
...
* stat for time spent copying generate index contents
* rework to move stat to generate_index
* fix fmt
2023-09-08 12:55:54 -07:00
Jeff Washington (jwash)
dc6b1eb653
in shrink, get stores prior to shrink starting ( #33194 )
2023-09-08 08:45:32 -07:00
Jeff Washington (jwash)
0083e426b2
ShrinkCandidates only holds slot ( #33173 )
2023-09-07 12:28:05 -07:00
Jeff Washington (jwash)
e331275178
remove coupling of ShrinkCandidates to HashMap ( #33176 )
2023-09-07 09:07:37 -07:00