1
0
Fork 0

Increase resource limits for the tile builder.

This commit is contained in:
curt 2005-09-28 16:40:32 +00:00
parent 25f1e2b22b
commit 238d87c2a2
2 changed files with 6 additions and 4 deletions

View file

@ -1,5 +1,7 @@
Sample command line to build a specific tile-id: Sample command line to build a specific tile-id:
./fgfs-construct --work-dir=/stage/fgfs05/curt/Work --output-dir=/stage/fgfs05/curt/Scenery-1.0 --tile-id=942691 /stage/fgfs05/curt/Work/AirportArea /stage/fgfs05/curt/Work/AirportObj /stage/fgfs05/curt/Work/VPF-Canals /stage/fgfs05/curt/Work/VPF-Cities /stage/fgfs05/curt/Work/VPF-FloodLand /stage/fgfs05/curt/Work/VPF-Lakes /stage/fgfs05/curt/Work/VPF-LandCover /stage/fgfs05/curt/Work/VPF-LandMass /stage/fgfs05/curt/Work/VPF-Railroads /stage/fgfs05/curt/Work/VPF-Rivers /stage/fgfs05/curt/Work/VPF-Roads /stage/fgfs05/curt/Work/VPF-Towns /stage/fgfs05/curt/Work/TowerObj /stage/fgfs05/curt/Work/SRTM-United_States-1 /stage/fgfs05/curt/Work/SRTM-North_America-3 /stage/fgfs05/curt/Work/SRTM-South_America-3 /stage/fgfs05/curt/Work/SRTM-Eurasia-3 /stage/fgfs05/curt/Work/SRTM-Africa-3 /stage/fgfs05/curt/Work/DEM-USGS-3 /stage/fgfs05/curt/Work/SRTM-30 2>&1 | less
./fgfs-construct --work-dir=/stage/fgfs04/curt/Work --output-dir=/stage/fgfs04/curt/FlightGear --tile-id=942050 --cover=/stage/fgfs04/curt/Work/LC-Global/gusgs2_0ll.img.old /stage/fgfs04/curt/Work/AirportArea /stage/fgfs04/curt/Work/AirportObj /stage/fgfs04/curt/Work/GSHHS-Ponds /stage/fgfs04/curt/Work/GSHHS-Islands /stage/fgfs04/curt/Work/GSHHS-Lakes /stage/fgfs04/curt/Work/GSHHS-LandMass /stage/fgfs04/curt/Work/USA-Hydro /stage/fgfs04/curt/Work/USA-Urban /stage/fgfs04/curt/Work/SRTM-1 2>&1 | less ./fgfs-construct --work-dir=/stage/fgfs04/curt/Work --output-dir=/stage/fgfs04/curt/FlightGear --tile-id=942050 --cover=/stage/fgfs04/curt/Work/LC-Global/gusgs2_0ll.img.old /stage/fgfs04/curt/Work/AirportArea /stage/fgfs04/curt/Work/AirportObj /stage/fgfs04/curt/Work/GSHHS-Ponds /stage/fgfs04/curt/Work/GSHHS-Islands /stage/fgfs04/curt/Work/GSHHS-Lakes /stage/fgfs04/curt/Work/GSHHS-LandMass /stage/fgfs04/curt/Work/USA-Hydro /stage/fgfs04/curt/Work/USA-Urban /stage/fgfs04/curt/Work/SRTM-1 2>&1 | less
Sample command line to build tiles intersecting an area specified by a Sample command line to build tiles intersecting an area specified by a

View file

@ -1218,8 +1218,8 @@ int main(int argc, char **argv) {
// again with a smaller interior angle limit. // again with a smaller interior angle limit.
int result; int result;
struct rlimit limit; struct rlimit limit;
limit.rlim_cur = 20000000; limit.rlim_cur = 40000000;
limit.rlim_max = 20000000; limit.rlim_max = 40000000;
#if 0 #if 0
result = setrlimit( RLIMIT_DATA, &limit ); result = setrlimit( RLIMIT_DATA, &limit );
@ -1234,8 +1234,8 @@ int main(int argc, char **argv) {
// cpu time limit since occassionally the triangulator can go into // cpu time limit since occassionally the triangulator can go into
// an infinite loop. // an infinite loop.
limit.rlim_cur = 120; limit.rlim_cur = 300; // seconds
limit.rlim_max = 120; limit.rlim_max = 300; // seconds
result = setrlimit( RLIMIT_CPU, &limit ); result = setrlimit( RLIMIT_CPU, &limit );
cout << "result of setting mem limit = " << result << endl; cout << "result of setting mem limit = " << result << endl;
#endif // end of stuff that crashes Cygwin #endif // end of stuff that crashes Cygwin