Commit 91dbed7
Support Per Stream Chunking to Relieve Memory Pressure (facebookincubator#243)
Summary:
This is an implementation of a detail in the new chunking policy described in this [doc](https://fburl.com/gdoc/gkdwwju1). Rather than chunking all eligible streams, we chunk individual streams in the order of their raw size until memory pressure is relieved. For our unit tests, the maximum number of chunks produced is identical to the previous implementation. But there may be differences for large file sizes. This requires more experimentation and tuning to determine the right threshold value that takes advantage of this.
Differential Revision: D817156551 parent 660170e commit 91dbed7
File tree
4 files changed
+78
-11
lines changed- dwio/nimble/velox
- tests
4 files changed
+78
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
644 | | - | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
645 | 647 | | |
646 | 648 | | |
647 | 649 | | |
| |||
746 | 748 | | |
747 | 749 | | |
748 | 750 | | |
749 | | - | |
750 | | - | |
751 | | - | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
752 | 756 | | |
753 | 757 | | |
754 | 758 | | |
| |||
765 | 769 | | |
766 | 770 | | |
767 | 771 | | |
768 | | - | |
769 | | - | |
770 | | - | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
771 | 777 | | |
772 | 778 | | |
773 | 779 | | |
| |||
871 | 877 | | |
872 | 878 | | |
873 | 879 | | |
874 | | - | |
875 | | - | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
876 | 913 | | |
877 | 914 | | |
878 | 915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
99 | 103 | | |
100 | 104 | | |
101 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1965 | 1965 | | |
1966 | 1966 | | |
1967 | 1967 | | |
| 1968 | + | |
1968 | 1969 | | |
1969 | 1970 | | |
1970 | 1971 | | |
| |||
1976 | 1977 | | |
1977 | 1978 | | |
1978 | 1979 | | |
| 1980 | + | |
1979 | 1981 | | |
1980 | 1982 | | |
1981 | 1983 | | |
| |||
2098 | 2100 | | |
2099 | 2101 | | |
2100 | 2102 | | |
| 2103 | + | |
2101 | 2104 | | |
2102 | 2105 | | |
2103 | 2106 | | |
| |||
2111 | 2114 | | |
2112 | 2115 | | |
2113 | 2116 | | |
| 2117 | + | |
2114 | 2118 | | |
2115 | 2119 | | |
2116 | 2120 | | |
| |||
2125 | 2129 | | |
2126 | 2130 | | |
2127 | 2131 | | |
| 2132 | + | |
2128 | 2133 | | |
2129 | 2134 | | |
2130 | 2135 | | |
| |||
2139 | 2144 | | |
2140 | 2145 | | |
2141 | 2146 | | |
| 2147 | + | |
2142 | 2148 | | |
2143 | 2149 | | |
2144 | 2150 | | |
| |||
2153 | 2159 | | |
2154 | 2160 | | |
2155 | 2161 | | |
| 2162 | + | |
| 2163 | + | |
2156 | 2164 | | |
2157 | 2165 | | |
2158 | 2166 | | |
| |||
2167 | 2175 | | |
2168 | 2176 | | |
2169 | 2177 | | |
2170 | | - | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
2171 | 2195 | | |
0 commit comments