-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathresult.txt
More file actions
190 lines (186 loc) · 9.74 KB
/
result.txt
File metadata and controls
190 lines (186 loc) · 9.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
PS E:\Knowledge_project\NoteConnection_app> npm start -- --path "E:\Knowledge_project\NoteConnection_app\Knowledge_Base\waterglass" --static --workers 10 --gpu
npm warn "E:\Knowledge_project\NoteConnection_app\Knowledge_Base\waterglass" is being parsed as a normal command line argument.
npm warn "10" is being parsed as a normal command line argument.
npm warn Unknown cli config "--path". This will stop working in the next major version of npm.
npm warn Unknown cli config "--static". This will stop working in the next major version of npm.
npm warn Unknown cli config "--workers". This will stop working in the next major version of npm.
npm warn Unknown cli config "--gpu". This will stop working in the next major version of npm.
> noteconnection@1.0.0 start
> node --max-old-space-size=12288 -r ts-node/register src/server.ts E:\Knowledge_project\NoteConnection_app\Knowledge_Base\waterglass 10
[CLI] Static mode requested (via env).
[CLI] Parsed Options: {
targetPath: 'E:\\Knowledge_project\\NoteConnection_app\\Knowledge_Base\\waterglass',
enableGPU: true,
enableGPULayout: true,
maxWorkers: 10
}
[CLI] Generating new knowledge graph for: E:\Knowledge_project\NoteConnection_app\Knowledge_Base\waterglass
[Config] Setting maxWorkers to 10
[Config] Setting enableGPU to true
[Config] Setting enableGPULayout to true
Loading files from: E:\Knowledge_project\NoteConnection_app\Knowledge_Base\waterglass
Loaded 214 files.
Building graph...
[System] Platform: win32 10.0.19045
[System] CPU: 12th Gen Intel(R) Core(TM) i5-12600K (16 cores)
[System] Total Memory: 63.79 GB
[Perf] Starting: Node Initialization
[Perf] Initial Memory: 170.78 MB / 256.07 MB (Heap/RSS)
[Perf] Finished: Node Initialization
[Perf] Time: 1.84ms
[Perf] CPU (User/Sys): 0.00ms / 0.00ms
[Perf] Memory (Heap/RSS): 171.01 MB / 256.09 MB
--------------------------------------------------
[Perf] Starting: Edge Identification (Explicit)
[Perf] Initial Memory: 171.02 MB / 256.10 MB (Heap/RSS)
[Perf] Finished: Edge Identification (Explicit)
[Perf] Time: 1.14ms
[Perf] CPU (User/Sys): 0.00ms / 0.00ms
[Perf] Memory (Heap/RSS): 171.06 MB / 256.10 MB
--------------------------------------------------
[Perf] Starting: Keyword Matching
[Perf] Initial Memory: 171.06 MB / 256.10 MB (Heap/RSS)
[GraphBuilder] Starting keyword matching for 214 files...
[GraphBuilder] Using Parallel Processing (Workers)
[GraphBuilder] Worker Path: E:\Knowledge_project\NoteConnection_app\src\backend\workers\keywordMatchWorker.ts
[GraphBuilder] isTsNode: true
[GraphBuilder] Spawning 10 workers...
[GraphBuilder] Parallel matching complete.
[Perf] Finished: Keyword Matching
[Perf] Time: 6921.26ms
[Perf] CPU (User/Sys): 51078.00ms / 8000.00ms
[Perf] Memory (Heap/RSS): 172.29 MB / 265.07 MB
--------------------------------------------------
[Perf] Starting: Statistical Inference (Shared)
[Perf] Initial Memory: 172.30 MB / 265.07 MB (Heap/RSS)
[GraphBuilder] Running Statistical Analysis (Shared)...
[StatisticalAnalyzer] Starting parallel term extraction for 214 files...
[GraphBuilder] Applying Statistical Inference rules...
[GraphBuilder] Added 323 inferred edges.
[Perf] Finished: Statistical Inference (Shared)
[Perf] Time: 6394.72ms
[Perf] CPU (User/Sys): 49922.00ms / 7609.00ms
[Perf] Memory (Heap/RSS): 175.11 MB / 524.16 MB
--------------------------------------------------
[Perf] Starting: Vector Similarity (Shared)
[Perf] Initial Memory: 175.12 MB / 517.44 MB (Heap/RSS)
[GraphBuilder] Initializing Vector Space (Shared)...
[GraphBuilder] Using GPU Acceleration for Vector Space...
[VectorSpace] Vocabulary size: 6143
[VectorSpaceGPU] Preparing data for GPU...
[VectorSpaceGPU] Matrix size: 214 documents x 6143 dimensions
[VectorSpaceGPU] Executing GPU Kernel...
[Perf] Starting: GPU Matrix Kernel
[Perf] Initial Memory: 207.21 MB / 327.36 MB (Heap/RSS)
[Perf] Finished: GPU Matrix Kernel
[Perf] Time: 2054.92ms
[Perf] CPU (User/Sys): 1828.00ms / 141.00ms
[Perf] Memory (Heap/RSS): 207.92 MB / 345.10 MB
--------------------------------------------------
[Perf] Finished: Vector Similarity (Shared)
[Perf] Time: 2763.33ms
[Perf] CPU (User/Sys): 2328.00ms / 469.00ms
[Perf] Memory (Heap/RSS): 207.94 MB / 345.10 MB
--------------------------------------------------
[Perf] Starting: Hybrid Inference
[Perf] Initial Memory: 207.94 MB / 345.10 MB (Heap/RSS)
[GraphBuilder] Running Hybrid Inference (Stats + Vector)...
[Perf] Starting: Hybrid Inference Logic
[Perf] Initial Memory: 207.95 MB / 345.11 MB (Heap/RSS)
[HybridEngine] Starting inference on 161 nodes...
[HybridEngine] Inference complete. Found 111 edges.
[Perf] Finished: Hybrid Inference Logic
[Perf] Time: 9.85ms
[Perf] CPU (User/Sys): 16.00ms / 0.00ms
[Perf] Memory (Heap/RSS): 197.17 MB / 345.38 MB
--------------------------------------------------
[GraphBuilder] Added 111 hybrid inferred edges.
[Perf] Finished: Hybrid Inference
[Perf] Time: 11.53ms
[Perf] CPU (User/Sys): 16.00ms / 0.00ms
[Perf] Memory (Heap/RSS): 197.24 MB / 345.38 MB
--------------------------------------------------
[GraphBuilder] Cleaning up Shared Stats Matrix...
[GraphBuilder] Cleaning up Shared Vector Space...
[Perf] Starting: Community Detection
[Perf] Initial Memory: 197.26 MB / 345.38 MB (Heap/RSS)
[Perf] Finished: Community Detection
[Perf] Time: 24.59ms
[Perf] CPU (User/Sys): 47.00ms / 0.00ms
[Perf] Memory (Heap/RSS): 207.95 MB / 345.52 MB
--------------------------------------------------
[Perf] Starting: Graph Metrics
[Perf] Initial Memory: 207.97 MB / 345.54 MB (Heap/RSS)
[GraphMetrics] Using Single-Core calculation (Memory Saving: true, Nodes: 214)
[Perf] Finished: Graph Metrics
[Perf] Time: 25.72ms
[Perf] CPU (User/Sys): 15.00ms / 0.00ms
[Perf] Memory (Heap/RSS): 194.30 MB / 345.93 MB
--------------------------------------------------
[GraphBuilder] Starting Algorithmic Core...
[Perf] Starting: Cycle Detection
[Perf] Initial Memory: 194.34 MB / 345.96 MB (Heap/RSS)
[GraphBuilder] Running Cycle Detection...
[GraphBuilder] Detected 66 cycles. Topological Sort may be partial.
[Perf] Finished: Cycle Detection
[Perf] Time: 2.35ms
[Perf] CPU (User/Sys): 0.00ms / 0.00ms
[Perf] Memory (Heap/RSS): 194.46 MB / 345.97 MB
--------------------------------------------------
[Perf] Starting: Topological Sort
[Perf] Initial Memory: 194.47 MB / 345.97 MB (Heap/RSS)
[GraphBuilder] Running Topological Sort...
Graph contains cycles! Processed 69/214 nodes.
[Perf] Finished: Topological Sort
[Perf] Time: 1.16ms
[Perf] CPU (User/Sys): 0.00ms / 0.00ms
[Perf] Memory (Heap/RSS): 194.53 MB / 345.98 MB
--------------------------------------------------
[GraphBuilder] Running Backend Layout Calculation...
[Perf] Starting: Backend Layout Calculation
[Perf] Initial Memory: 194.54 MB / 345.98 MB (Heap/RSS)
[LayoutEngine] Spawning layout worker: E:\Knowledge_project\NoteConnection_app\src\backend\workers\layoutWorker.ts
[LayoutEngine] GPU Acceleration enabled. Using LayoutGPU.
[LayoutGPU] Starting Layout Calculation for 214 nodes on GPU...
[Perf] Starting: GPU Layout Calculation
[Perf] Initial Memory: 203.79 MB / 351.04 MB (Heap/RSS)
[Perf] Finished: GPU Layout Calculation
[Perf] Time: 1401.94ms
[Perf] CPU (User/Sys): 1171.00ms / 156.00ms
[Perf] Memory (Heap/RSS): 201.46 MB / 360.00 MB
--------------------------------------------------
[Perf] Finished: Backend Layout Calculation
[Perf] Time: 1524.36ms
[Perf] CPU (User/Sys): 1515.00ms / 156.00ms
[Perf] Memory (Heap/RSS): 201.53 MB / 360.01 MB
--------------------------------------------------
[GraphBuilder] Algorithmic Core Complete.
==================== PERFORMANCE SUMMARY ====================
| Stage | Time (ms) | Max Heap | Max RSS | Max VRAM |
|--------------------------------+--------------+--------------+--------------+--------------|
| Node Initialization | 2 | 171.01 MB | 256.09 MB | - |
| Edge Identification (Explicit) | 1 | 171.06 MB | 256.10 MB | - |
| Keyword Matching | 6921 | 172.29 MB | 265.07 MB | - |
| Statistical Inference (Shared) | 6395 | 175.11 MB | 524.16 MB | - |
| GPU Matrix Kernel | 2055 | 207.92 MB | 345.10 MB | - |
| Vector Similarity (Shared) | 2763 | 207.94 MB | 345.10 MB | - |
| Hybrid Inference Logic | 10 | 197.17 MB | 345.38 MB | - |
| Hybrid Inference | 12 | 197.24 MB | 345.38 MB | - |
| Community Detection | 25 | 207.95 MB | 345.52 MB | - |
| Graph Metrics | 26 | 194.30 MB | 345.93 MB | - |
| Cycle Detection | 2 | 194.46 MB | 345.97 MB | - |
| Topological Sort | 1 | 194.53 MB | 345.98 MB | - |
| GPU Layout Calculation | 1402 | 201.46 MB | 360.00 MB | - |
| Backend Layout Calculation | 1524 | 201.53 MB | 360.01 MB | - |
|--------------------------------+--------------+--------------+--------------+--------------|
| TOTAL / PEAK | 21139 | 207.97 MB | 525.16 MB | 5.19 MB |
=============================================================
Graph built: 214 nodes, 818 edges.
CLI graph data saved to: E:\Knowledge_project\NoteConnection_app\src\frontend\graph_data_cli_waterglass_20260112034852..json
CLI JS data saved to: E:\Knowledge_project\NoteConnection_app\src\frontend\data_cli_waterglass_20260112034852..js
[CLI] Generation complete.
Server running at http://localhost:3000/
Knowledge Base Root: E:\Knowledge_project\NoteConnection_app\Knowledge_Base
[CLI] Ready.
[Server] CLI Mode: Serving /data_cli_waterglass_20260112034852..js instead of /data.js
[Server] CLI Mode: Serving /data_cli_waterglass_20260112034852..js instead of /data.js