Commit ca44263
Support Per Stream Chunking to Relieve Memory Pressure (facebookincubator#243)
Summary:
Pull Request resolved: facebookincubator#243
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 ee8c934 commit ca44263
File tree
4 files changed
+69
-9
lines changed- dwio/nimble/velox
- tests
4 files changed
+69
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
799 | 799 | | |
800 | 800 | | |
801 | 801 | | |
802 | | - | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
803 | 805 | | |
804 | 806 | | |
805 | 807 | | |
| |||
866 | 868 | | |
867 | 869 | | |
868 | 870 | | |
| 871 | + | |
869 | 872 | | |
870 | 873 | | |
871 | 874 | | |
872 | | - | |
| 875 | + | |
| 876 | + | |
873 | 877 | | |
874 | 878 | | |
875 | 879 | | |
876 | 880 | | |
877 | | - | |
| 881 | + | |
| 882 | + | |
878 | 883 | | |
879 | 884 | | |
880 | 885 | | |
| |||
911 | 916 | | |
912 | 917 | | |
913 | 918 | | |
914 | | - | |
915 | | - | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
916 | 923 | | |
917 | 924 | | |
918 | 925 | | |
| |||
998 | 1005 | | |
999 | 1006 | | |
1000 | 1007 | | |
1001 | | - | |
1002 | | - | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
1003 | 1034 | | |
1004 | 1035 | | |
1005 | 1036 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| 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 | |
|---|---|---|---|
| |||
1947 | 1947 | | |
1948 | 1948 | | |
1949 | 1949 | | |
| 1950 | + | |
1950 | 1951 | | |
1951 | 1952 | | |
1952 | 1953 | | |
| |||
1958 | 1959 | | |
1959 | 1960 | | |
1960 | 1961 | | |
| 1962 | + | |
1961 | 1963 | | |
1962 | 1964 | | |
1963 | 1965 | | |
| |||
2075 | 2077 | | |
2076 | 2078 | | |
2077 | 2079 | | |
| 2080 | + | |
2078 | 2081 | | |
2079 | 2082 | | |
2080 | 2083 | | |
| |||
2088 | 2091 | | |
2089 | 2092 | | |
2090 | 2093 | | |
| 2094 | + | |
2091 | 2095 | | |
2092 | 2096 | | |
2093 | 2097 | | |
| |||
2102 | 2106 | | |
2103 | 2107 | | |
2104 | 2108 | | |
| 2109 | + | |
2105 | 2110 | | |
2106 | 2111 | | |
2107 | 2112 | | |
| |||
2116 | 2121 | | |
2117 | 2122 | | |
2118 | 2123 | | |
| 2124 | + | |
2119 | 2125 | | |
2120 | 2126 | | |
2121 | 2127 | | |
| |||
2130 | 2136 | | |
2131 | 2137 | | |
2132 | 2138 | | |
| 2139 | + | |
| 2140 | + | |
2133 | 2141 | | |
2134 | 2142 | | |
2135 | 2143 | | |
| |||
2144 | 2152 | | |
2145 | 2153 | | |
2146 | 2154 | | |
2147 | | - | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
2148 | 2171 | | |
0 commit comments