I have some pdf's for professional print that are put in a certain folder. These pdf's may or may not contain spot/Pantone colors. All files in this folder get processed.
I have to cut some white space from the edges and this works fine with Ghostscript 8.7 on a linux machine using the command:
gs \
-o correct_size.pdf \
-sDEVICE=pdfwrite \
-g1000x1000 \
-dPDFSETTINGS=/prepress \
-c "<</PageOffset [0 0]>> setpagedevice" \
-f original_size.pdf
This problem is the spot/Pantone colors aren't preserved.
The documentation speaks about handling spotcolors but doesn't really give a solution.
Has anyone come across this before or does anyone have another solution? It doesn't have to involve Ghostscript.
Using a version of Ghostscript less than 5 years old would be a good place to start!
The current version of pdfwrite will retain colour spaces, including Separation (what you are calling spot) ICCBased and DeviceN. It is also capable of retaining Separation colour spaces when converting to a different device space, by resampling the tint transform into the desired space.
Secondly, don't use the canned PDFSETTINGS unless you are very sure you understand what the settings mean. In general the default settings in pdfwrite will preserve unchanged anything in the original file that it can, the PDFSETTINGS are set to follow (as far as possible) the same settings in Adobe Acrobat Distiller. If you aren't certain what these do, the documentation details it.
If you want to know exactly, what the canned -dPDFSETTINGS=/prepress do, you can query your current version of Ghostscript with this command:
gs -q \
-dPDFSETTINGS=/prepress \
-o /dev/null \
-sDEVICE=pdfwrite \
-c "currentpagedevice {exch ==only ( ) print == } forall" \
| sort
In my case, I get this for a Ghostscript 9.16 (self-compiled from Ghostscript's current Git source respository):
/%MediaDestination 0
/%MediaSource 0
/.AlwaysEmbed []
/.HWMargins [0.0 0.0 0.0 0.0]
/.IgnoreNumCopies false
/.LockSafetyParams false
/.MarginsHWResolution [720.0 720.0]
/.MediaSize [612.0 792.0]
/.NeverEmbed []
/ASCII85EncodePages false
/AllowIncrementalCFF false
/AllowPSRepeatFunctions false
/AlwaysEmbed []
/AntiAliasColorImages false
/AntiAliasGrayImages false
/AntiAliasMonoImages false
/AutoFilterColorImages true
/AutoFilterGrayImages true
/AutoPositionEPSFiles true
/AutoRotatePages /None
/BandBufferSpace 0
/BandHeight 0
/BandWidth 0
/BeginPage {--.callbeginpage--}
/Binding /Left
/BitsPerPixel 24
/BlackPtComp 8
/BlueValues 256
/BufferSpace 4000000
/CalCMYKProfile (None)
/CalGrayProfile (None)
/CalRGBProfile (None)
/CannotEmbedFontPolicy /Error
/CenterPages false
/ColorACSImageDict -dict-
/ColorAutoFilterStrategy 248456437
/ColorConversionStrategy /LeaveColorUnchanged
/ColorImageDepth -1
/ColorImageDict -dict-
/ColorImageDownsampleThreshold 1.5
/ColorImageDownsampleType /Bicubic
/ColorImageFilter /DCTEncode
/ColorImageResolution 300
/ColorValues 16777216
/Colors 3
/CompatibilityLevel 1.5
/CompressEntireFile false
/CompressFonts true
/CompressPages true
/ConvertCMYKImagesToRGB false
/ConvertImagesToIndexed true
/CoreDistVersion 5000
/CreateJobTicket true
/DSCEncodingToUnicode []
/DefaultRenderingIntent /Default
/DetectBlends true
/DetectDuplicateImages true
/DeviceGrayToK true
/DeviceLinkProfile ()
/DoNumCopies false
/DoThumbnails true
/DocumentTimeSeq 0
/DocumentUUID ()
/DownsampleColorImages true
/DownsampleGrayImages true
/DownsampleMonoImages true
/EmbedAllFonts true
/EmitDSCWarnings false
/EncodeColorImages true
/EncodeGrayImages true
/EncodeMonoImages true
/EncryptionR 0
/EndPage {--.callendpage--}
/FastWebView false
/FirstObjectNumber 1
/FirstPage 0
/FitPages false
/ForOPDFRead false
/GraphicBlackPt 8
/GraphicICCProfile ()
/GraphicIntent 8
/GraphicKPreserve 8
/GraphicsAlphaBits 1
/GrayACSImageDict -dict-
/GrayAutoFilterStrategy 248456437
/GrayDetection false
/GrayImageDepth -1
/GrayImageDict -dict-
/GrayImageDownsampleThreshold 1.5
/GrayImageDownsampleType /Bicubic
/GrayImageFilter /DCTEncode
/GrayImageResolution 300
/GrayValues 256
/GreenValues 256
/HWResolution [720.0 720.0]
/HWSize [6120 7920]
/HaveCIDSystem false
/HaveTransparency true
/HaveTrueTypes true
/HighLevelDevice true
/ICCOutputColors ()
/ImageBlackPt 8
/ImageICCProfile ()
/ImageIntent 8
/ImageKPreserve 8
/ImageMemory 524288
/ImagingBBox null
/InputAttributes -dict-
/Install {--.callinstall--}
/InstanceUUID ()
/IsDistiller true
/KPreserve 8
/KeyLength 0
/LZWEncodePages false
/LastPage 0
/Margins [0.0 0.0]
/MaxBitmap 10000000
/MaxClipPathSize 12000
/MaxInlineImageSize 4000
/MaxPatternBitmap 0
/MaxSeparations 3
/MaxShadingBitmapSize 256000
/MaxSubsetPct 100
/MonoImageDepth -1
/MonoImageDict -dict-
/MonoImageDownsampleThreshold 1.5
/MonoImageDownsampleType /Bicubic
/MonoImageFilter /CCITTFaxEncode
/MonoImageResolution 1200
/Name (pdfwrite)
/NeverEmbed []
/NoEncrypt ()
/NoOutputFonts false
/NoT3CCITT false
/NumCopies null
/OPM 1
/OffOptimizations 0
/Optimize true
/OutputAttributes -dict-
/OutputDevice /pdfwrite
/OutputFile (/dev/null)
/OutputICCProfile (default_rgb.icc)
/OwnerPassword ()
/PDFA 0
/PDFACompatibilityPolicy 0
/PDFEndPage -1
/PDFStartPage 1
/PDFUseOldCMS false
/PDFX false
/PDFXBleedBoxToTrimBoxOffset [0.0 0.0 0.0 0.0]
/PDFXSetBleedBoxToMediaBox true
/PDFXTrimBoxToMediaBoxOffset [0.0 0.0 0.0 0.0]
/PageCount 0
/PageDeviceName null
/PageOffset [0 0]
/PageSize [612.0 792.0]
/PageUsesTransparency false
/ParseDSCComments true
/ParseDSCCommentsForDocInfo true
/PatternImagemask false
/Permissions -4
/Policies -dict-
/PreBandThreshold false
/PreserveCopyPage true
/PreserveDeviceN true
/PreserveEPSInfo true
/PreserveHalftoneInfo false
/PreserveOPIComments true
/PreserveOverprintSettings true
/PreserveSMask true
/PreserveSeparation true
/PreserveTrMode true
/PrintStatistics false
/ProcessColorModel /DeviceRGB
/ProduceDSC true
/ProofProfile ()
/ReAssignCharacters true
/ReEncodeCharacters true
/RedValues 256
/RenderIntent 8
/RotatePages false
/SeparationColorNames []
/Separations false
/SetPageSize true
/SimulateOverprint true
/SubsetFonts true
/TextAlphaBits 1
/TextBlackPt 8
/TextICCProfile ()
/TextIntent 8
/TextKPreserve 8
/TransferFunctionInfo /Preserve
/UCRandBGInfo /Preserve
/UseCIEColor false
/UseFastColor false
/UseFlateCompression true
/UsePrologue false
/UserPassword ()
/WantsToUnicode true
/sRGBProfile (None)
If you want to use -dPDFSETTINGS=/prepress, but with some tweaks of your own, you can look up the known parameters and their canned values with above command.
Then add a suitable -c ".setpdfwrite << ... >> setdistillerparams" modification to your Ghostscript command (example is arbitrary):
gs \
-dPDFSETTINGS=/prepress \
-o out.pdf \
-sDEVICE=pdfwrite \
[...more commandline switches...] \
-c ".setpdfwrite<</Optimize false/NeverEmbed[/Courier/Verdana]>>setdistillerparams" \
-f input.pdf
Related
I'm having the same issue as this question, but no one has solved it yet:
Configure PTP_Timescale parameter
In Wireshark, from the master side, I am seeing Sync and Followup Messages being sent, but under the flags section of the PTP Message, only PTP_TWO_STEP is 1. The rest of the flags are 0. It looks like this:
flags: 0x0200
0... .... .... .... = PTP_SECURITY: False
.0.. .... .... .... = PTP profile Specific 2: False
..0. .... .... .... = PTP profile Specific 1: False
.... .0.. .... .... = PTP_UNICAST: False
.... ..1. .... .... = PTP_TWO_STEP: True
.... ...0 .... .... = PTP_ALTERNATE_MASTER: False
.... .... ..0. .... = FREQUENCY_TRACEABLE: False
.... .... ...0 .... = TIME_TRACEABLE: False
.... .... .... 0... = PTP_TIMESCALE: False
.... .... .... .0.. = PTP_UTC_REASONABLE: False
.... .... .... ..0. = PTP_LI_59: False
.... .... .... ...0 = PTP_LI_61: False
I use pmc to set the GM settings on the GM, in a different tab using:
sudo pmc -u -b 0 -t 1 "SET GRANDMASTER_SETTINGS_NP clockClass 248 \
clockAccuracy 0xfe offsetScaledLogVariance 0xffff \
currentUtcOffset 37 leap61 0 leap59 0 currentUtcOffsetValid 1 \
ptpTimescale 1 timeTraceable 1 frequencyTraceable 0 \
timeSource 0xa0"
But, when I restart ptp4l and phc2sys, and look at the packets being sent in Wireshark, I don't see the changes I made reflected in the flags. Any ideas?
I have this data:
Time Filename 60Ni 61Ni 62Ni 63Cu 64Ni 65Cu 66Zn
0 input/25.03.2022/220310001_Blk.TXT 0.004213561117649 0.0004941140553758 0.0008264054505464 0.0031620886176824 0.0027940864441916 0.0015828267166701 0.0016676299002331
0 input/25.03.2022/220310002_s01.TXT 10.450854313373563 0.4648053120821714 1.515178832411766 6.799761742353439 0.4018541350960731 3.1670226126909258 -0.0004149001091036
0 input/25.03.2022/220310003_Blk.TXT 0.0046728020068258 0.0005113642575452 0.0008742292275807 0.0038990775356069 0.0016948795023684 0.0018952833449778 0.0010220745559005
0 input/25.03.2022/220310004_NBS1.TXT 10.198064727783205 0.4535825699567795 1.4786694407463077 6.644256343841553 0.3992856484651566 3.094865655899048 0.0037580380868166
0 input/25.03.2022/220310004_NBS1.TXT 10.079309902191165 0.4483201849460602 1.46148056268692 6.564267292022705 0.3941892045736312 3.0576720571517946 0.0034487369190901
0 input/25.03.2022/220310004_NBS1.TXT 10.055493621826171 0.4472497546672821 1.4580038189888 6.549974250793457 0.3931813925504684 3.050980033874512 0.0033985046250745
0 input/25.03.2022/220310005_Blk.TXT 0.0054564320637534 0.000552704881799 0.0009742037393152 0.0051360657749076 0.0016950297751463 0.0024249535597239 0.0009928302722983
0 input/25.03.2022/220310006_s02.TXT 10.01531049013138 0.4454658553004265 1.4522675812244414 6.514146220684052 0.386061905324459 3.0344271540641783 0.000107468456008
0 input/25.03.2022/220310007_Blk.TXT 0.0058440430865933 0.0005767503850317 0.0010166236781515 0.005754723213613 0.0016812159873855 0.0026916580740362 0.0009854609476557
0 input/25.03.2022/220310008_IC11.TXT 9.994083042144776 0.4445306330919266 1.4492901706695556 7.470176630020141 0.3894518518447876 3.4796351766586304 0.0025492239557206
0 input/25.03.2022/220310008_IC11.TXT 9.96211524963379 0.4431046521663666 1.4446095180511476 7.446916389465332 0.3881216913461685 3.4687003660202027 0.0025008138502016
0 input/25.03.2022/220310008_IC11.TXT 9.986034145355225 0.4441730308532715 1.4480724453926086 7.463679447174072 0.3892696779966354 3.4765151739120483 0.0026400250289589
0 input/25.03.2022/220310009_Blk.TXT 0.0063325553511579 0.0006097427569329 0.0010847105528227 0.0069349051453173 0.001787266593116 0.0031935206692044 0.0010376764985267
0 input/25.03.2022/220310010_IC21.TXT 9.907929096221924 0.4407092106342316 1.436798827648163 6.06647294998169 0.381802784204483 2.8266239309310914 -1.9165552830600065e-05
0 input/25.03.2022/220310010_IC21.TXT 9.898069801330566 0.440289745926857 1.4353946447372437 6.061149816513062 0.381249166727066 2.824158968925476 -0.000127439211501
0 input/25.03.2022/220310010_IC21.TXT 9.873182182312013 0.4391724157333374 1.4317991995811463 6.046364660263062 0.3803336149454117 2.8172996759414675 -0.0001105861682299
0 input/25.03.2022/220310011_Blk.TXT 0.006776000233367 0.0006151825053772 0.0011437231053908 0.0076008092767248 0.0019233425652297 0.0034851033162946 0.0010968211592019
0 input/25.03.2022/220310012_s03.TXT 9.919624531269074 0.4412683457136154 1.4386062547564509 6.453964179754257 0.3823180440813303 3.006967249512672 -5.925155056729638e-06
0 input/25.03.2022/220310013_Blk.TXT 0.0070609439785281 0.000630383901686 0.0011728596175089 0.0080440094384054 0.002036696835421 0.0036809448773662 0.0011725965615672
0 input/25.03.2022/220310014_NBS2.TXT 9.981303691864014 0.4439967930316925 1.4475916290283204 6.529758939743042 0.3842234253883362 3.0423321390151976 -0.0003124714840669
0 input/25.03.2022/220310014_NBS2.TXT 9.914944686889648 0.4410672289133072 1.43802725315094 6.483507022857666 0.3816052615642548 3.020912132263184 -0.0003612653422169
0 input/25.03.2022/220310014_NBS2.TXT 9.886322116851806 0.4397846907377243 1.433876838684082 6.466586313247681 0.3804377472400665 3.012995510101318 -0.0004034811019664
0 input/25.03.2022/220310015_Blk.TXT 0.0073987463644395 0.0006374313224417 0.00121240914256 0.0086917337340613 0.0023169121006503 0.0039539939956739 0.0013138331084822
0 input/25.03.2022/220310016_IC12.TXT 9.85557996749878 0.4384415912628174 1.429577150344849 7.381738519668579 0.3795971584320068 3.4393920421600344 -0.0002216772679821
0 input/25.03.2022/220310016_IC12.TXT 9.82486707687378 0.4370819771289825 1.4251339054107666 7.356578054428101 0.3785045564174652 3.4277337741851808 -0.0001708243161556
0 input/25.03.2022/220310016_IC12.TXT 9.80790719985962 0.4363300800323486 1.4227154779434203 7.344034671783447 0.3781744015216827 3.421962966918945 4.260804889781866e-06
0 input/25.03.2022/220310017_Blk.TXT 0.0075777747668325 0.0006548739698094 0.0012614171913204 0.0094458545868595 0.0020529380068182 0.0042742350138723 0.0011683187098242
0 input/25.03.2022/220310018_s04.TXT 9.812697958946227 0.4365527924150228 1.4234635725617408 6.387677395343781 0.3783831790089607 2.9768310248851777 -2.183340569104075e-05
0 input/25.03.2022/220310019_Blk.TXT 0.0078119638841599 0.0006677620811387 0.001280953696308 0.0097443414541582 0.0025180794376259 0.0044003704718003 0.0014272088340173
I read it and I drop everything I don't want::
import pandas as pd
df = pd.read_csv(fullname, delimiter='\t', index_col=False)
df.drop(['Time', '60Ni', '61Ni', '62Ni', '64Ni', '66Zn'], axis=1, inplace=True)
inserting a ratio:
df['Cu_ratio'] = df['65Cu'] / df['63Cu']
detecting rows by name:
df['blank']=df['Filename'].str.contains('_Blk|_BLK')
df['standard']=df['Filename'].str.contains('_s')
df['sample']=~df['blank'] & ~df['standard']
dfSamples=df[df['sample'] == True]
then I need to detect the "standard" before and after each "sample"
i = 0
for sampleIndex in dfSamples.index:
dfBefore=df.iloc[0:sampleIndex]
dfBeforeInverse=dfBefore[::-1]
dfStandardBefore = dfBeforeInverse[dfBeforeInverse['standard'] == True]
indexBefore = dfStandardBefore.index[0]
df.at[sampleIndex, 'standardBefore'] = indexBefore
lastIndex = df.index[-1]
dfAfter=df.iloc[sampleIndex:lastIndex]
dfStandardAfter = dfAfter[dfAfter['standard'] == True]
indexAfter = dfStandardAfter.index[0]
df.at[sampleIndex, 'standardAfter'] = indexAfter
this works so far.
But where I'm struggling: I need to make a calculation:
First, I need to calculate the average of the "standard" before and after each "sample":
I tried it with
av_std = sum(dfStandardBefore['Cu_ratio'], dfStandardAfter['Cu_ratio']) / 2
but it calculates the sum of ALL standards before and after, not only the masked with boolean. What I need it to be for example:
s01 and s02 for NBS1; s02 and s03 for IC11 and IC21, s03 and s04 for NBS2 and IC12, and so on.
The last step would be to make a calculation for each sample:
delta = (av_std / sample) * 1000
and export it into a csv.
How can I solve this?
How to fill in the correct parameters for converting tflite?
Here is the failed message and pb info as below,
(1) failed message
~/tensorflow/pkg/tensorflow$ bazel-bin/tensorflow/contrib/lite/toco/toco \
--input_format=TENSORFLOW_GRAPHDEF \
--input_file='retrained_graph.pb' \
--output_format=TFLITE \
--output_file='retrained_graph.tflite' \
--inference_type=FLOAT \
--inference_input_type=FLOAT \
--output_arrays=final_result \
--input_arrays=batch_size,phase_train \
--input_shapes=1,160,160,3:False \
--mean_values=128 \
--std_values=128
2018-09-06 17:16:14.249938: F tensorflow/contrib/lite/toco/model_cmdline_flags.cc:263] Check failed: mean_values.size() == model_flags->input_arrays_size()
(2) pb info
xxxx:~/tensorflow/pkg/tensorflow$ bazel-bin/tensorflow/tools/graph_transforms/summarize_graph --in_graph='zzz/retrained_graph.pb'
Found 2 possible inputs: (name=batch_size, type=int32(3), shape=<unknown>) (name=phase_train, type=bool(10), shape=<unknown>)
No variables spotted.
Found 1 possible outputs: (name=final_result, op=Softmax)
Found 23514555 (23.51M) const parameters, 0 (0) variable parameters, and 675 control_edges
Op types used: 2019 Switch, 1104 Const, 1057 Identity, 449 Sub, 449 Merge, 247 Mul, 224 FusedBatchNorm, 132 Conv2D, 131 Relu, 24 Add, 23 ConcatV2, 21 BiasAdd, 3 MaxPool, 3 Shape, 3 Reshape, 2 MatMul, 2 Placeholder, 1 PlaceholderWithDefault, 1 AvgPool, 1 StridedSlice, 1 Softmax, 1 RealDiv, 1 RandomUniform, 1 QueueDequeueUpToV2, 1 FIFOQueueV2, 1 Pack, 1 Floor
To use with tensorflow/tools/benchmark:benchmark_model try these arguments:
bazel run tensorflow/tools/benchmark:benchmark_model -- --graph=zzz/retrained_graph.pb --show_flops --input_layer=batch_size,phase_train --input_layer_type=int32,bool --input_layer_shape=: --output_layer=final_result
If you're not using quantization with your model, you can skip the --mean_values and --std_values input args entirely.
Those flags are only necessary when using quantization (--inference_type=QUANTIZED_UINT8). If you do use quantization and specify the mean and std, you're required to do so for each input (in this case, both batch_size and phase_train).
Still new in Python.
I have found that the Y-axis always is scaled to the whole DataFrame using plt.show() when plotting a part of the x-axis (Date)
I have made a variable 'plot' in the complete DataFrame with values False/True depending on the Date range I want to plot.
How do I make a new DataFrame plotdata with all data where 'plot' has value "True" in order to rescale the Y-axis.
data['plot'] = (data['Date'] > startplot) & (data['Date'] <= end)
print(data)
plotdata = pd.DataFrame()
plotdata = pd.DataFrame([data('plot') == 'True'])
.
.
My print(data) looks like this:
Date Open High Low Close Volume plot
0 2015-01-02 47.00 47.23 46.91 46.96 11421233 False
1 2015-01-05 47.08 47.16 46.56 46.57 18964458 False
2 2015-01-06 46.79 47.38 46.46 47.04 22950060 False
3 2015-01-07 46.92 47.04 46.05 46.19 20793637 False
.
.
644 2017-07-25 43.90 44.17 43.81 43.98 9818802 True
645 2017-07-26 44.80 44.83 44.28 44.40 19045166 True
646 2017-07-27 46.26 47.84 45.95 47.81 44702494 True
647 2017-07-28 47.70 48.38 47.12 47.94 25296508 True
I have searched and looked a lot without success. Hope someone has a solution. Thanks / Henning
Something like
plotdata=data[data['plot']]
plotdata
Out[470]:
Date Open High Low Close Volume plot
644 2017-07-25 43.90 44.17 43.81 43.98 9818802 True
645 2017-07-26 44.80 44.83 44.28 44.40 19045166 True
646 2017-07-27 46.26 47.84 45.95 47.81 44702494 True
647 2017-07-28 47.70 48.38 47.12 47.94 25296508 True
I'm used to Torque so I'm hoping that some Sun SGE guru can help. I can't figure out why my jobs are terminating at, near as I can tell 3 hours. The jobs are being submitted to an empty queue with no competition on a new install of ROCKS 6.2. Jobs shorter than 3 hours do not have any problems.
Here's the Server configuration (I think)
[user#machine]$ qconf -ssconf
algorithm default
schedule_interval 0:0:05
maxujobs 0
queue_sort_method load
job_load_adjustments np_load_avg=0.50
load_adjustment_decay_time 0:10:30
load_formula slots
schedd_job_info false
flush_submit_sec 1
flush_finish_sec 10
params none
reprioritize_interval 0:0:0
halftime 168
usage_weight_list cpu=1.000000,mem=0.000000,io=0.000000
compensation_factor 5.000000
weight_user 0.250000
weight_project 0.250000
weight_department 0.250000
weight_job 0.250000
weight_tickets_functional 0
weight_tickets_share 0
share_override_tickets TRUE
share_functional_shares TRUE
max_functional_jobs_to_schedule 200
report_pjob_tickets TRUE
max_pending_tasks_per_job 50
halflife_decay_list none
policy_hierarchy OFS
weight_ticket 0.010000
weight_waiting_time 0.000000
weight_deadline 3600000.000000
weight_urgency 0.100000
weight_priority 1.000000
max_reservation 0
default_duration INFINITY
The queue configuration
[user#machine]$ qconf qconf -sql
all.q
[user#machine]$ qconf qconf -sq all.q
qname all.q
hostlist #allhosts
seq_no 0
load_thresholds np_load_avg=1.75
suspend_thresholds NONE
nsuspend 1
suspend_interval 00:05:00
priority 0
min_cpu_interval 00:05:00
processors UNDEFINED
qtype BATCH INTERACTIVE
ckpt_list NONE
pe_list make mpi mpich orte
rerun FALSE
slots 1,[compute-0-0.local=4],[compute-1-0.local=4], \
[compute-1-1.local=4],[compute-1-2.local=4], \
[compute-1-3.local=4],[compute-1-4.local=4], \
[compute-2-0.local=4],[compute-2-1.local=4], \
[compute-2-2.local=4],[compute-2-4.local=4]
tmpdir /tmp
shell /bin/bash
prolog NONE
epilog NONE
shell_start_mode posix_compliant
starter_method NONE
suspend_method NONE
resume_method NONE
terminate_method NONE
notify 00:00:60
owner_list NONE
user_lists NONE
xuser_lists NONE
subordinate_list NONE
complex_values NONE
projects NONE
xprojects NONE
calendar NONE
initial_state default
s_rt INFINITY
h_rt INFINITY
s_cpu INFINITY
h_cpu INFINITY
s_fsize INFINITY
h_fsize INFINITY
s_data INFINITY
h_data INFINITY
s_stack INFINITY
h_stack INFINITY
s_core INFINITY
h_core INFINITY
s_rss INFINITY
h_rss INFINITY
s_vmem INFINITY
h_vmem INFINITY
And here's a sample in progress job status.
[user#machine]$ qstat -j 255
==============================================================
job_number: 255
exec_file: job_scripts/255
submission_time: Mon Jul 3 11:19:07 2017
owner: <user>
uid: 500
group: <user>
gid: 502
sge_o_home: /home/<user>
sge_o_log_name: <user>
sge_o_path: /home/<user>/<programDIR>/bin/linux:/home/<user>/<gitRootDIR>/<codeDIR>/bin/linux:/opt/openmpi/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/java/latest/bin:/opt/maven/bin:/opt/rocks/bin:/opt/rocks/sbin:/opt/gridengine/bin/linux-x64:/home/<user>/scripts/:/home/<user>/bin
sge_o_shell: /bin/bash
sge_o_workdir: <CORRECT working DIR>
sge_o_host: <HOSTNAME>
account: sge
merge: y
mail_options: ae
mail_list: <user#domain.tld>
notify: FALSE
job_name: STDIN
stdout_path_list: NONE:NONE:test3_w5.eo
jobshare: 0
env_list: HOSTNAME=<HOSTNAME>.FQDN,SHELL=/bin/bash,TERM=xterm,HISTSIZE=1000,EGS_HOME=/home/<user>/<programDIR>/,SSH_CLIENT=172.24.56.106 56512 22,SGE_ARCH=linux-x64,SGE_CELL=default,MPICH_PROCESS_GROUP=no,QTDIR=/usr/lib64/qt-3.3,QTINC=/usr/lib64/qt-3.3/include,SSH_TTY=/dev/pts/0,ROCKSROOT=/opt/rocks/share/devel,ANT_HOME=/opt/rocks,USER=<user>,LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:,LD_LIBRARY_PATH=/opt/gridengine/lib/linux-x64:/opt/openmpi/lib,ROCKS_ROOT=/opt/rocks,<DEFAULT_BATCH_SYSTEM>=sge,PATH=/home/<user>/<programDIR>/bin/linux:/home/<user>/<gitRootDIR>/<codeDIR>/bin/linux:/opt/openmpi/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/java/latest/bin:/opt/maven/bin:/opt/rocks/bin:/opt/rocks/sbin:/opt/gridengine/bin/linux-x64:/home/<user>/scripts/:/home/<user>/bin,MAIL=/var/spool/mail/<user>,MAVEN_HOME=/opt/maven,<codeDIR>=/home/<user>/<gitRootDIR>/<codeDIR>/,PWD=/home/<user>/<programDIR>/dosxyznrc,JAVA_HOME=/usr/java/latest,_LMFILES_=/usr/share/Modules/modulefiles/rocks-openmpi,SGE_EXECD_PORT=537,LANG=en_US.iso885915,MODULEPATH=/usr/share/Modules/modulefiles:/etc/modulefiles,SGE_QMASTER_PORT=536,LOADEDMODULES=rocks-openmpi,SGE_ROOT=/opt/gridengine,HISTCONTROL=ignoredups,SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass,HOME=/home/<user>,SHLVL=2,ROLLSROOT=/opt/rocks/share/devel/src/roll,MPIHOME=/opt/openmpi,LOGNAME=<user>,CVS_RSH=ssh,QTLIB=/usr/lib64/qt-3.3/lib,SSH_CONNECTION=172.24.56.106 56512 172.24.59.111 22,MODULESHOME=/usr/share/Modules,LESSOPEN=||/usr/bin/lesspipe.sh %s,OMEGA_HOME=/home/<user>/<gitRootDIR>/<codeDIR>/omega,EGS_CONFIG=/home/<user>/<gitRootDIR>/<codeDIR>/specs/linux.conf,G_BROKEN_FILENAMES=1,OMPI_MCA_btl=self,sm,tcp,BASH_FUNC_module()=() { eval `/usr/bin/modulecmd bash $*`
},_=/opt/gridengine/bin/linux-x64/qsub
script_file: STDIN
usage 1: cpu=00:13:50, mem=833.52093 GBs, io=0.05473, vmem=1.109G, maxvmem=1.109G
scheduling info: (Collecting of scheduler job information is turned off)
It sounds like the complex has a default run time. You can inspect these w/:
qconf -sc | grep -e '^#' -e _rt
If the default is not 0:0:0, then that value is enforced on the run time.
You can override this default w/:
qsub -l s_rt=8:0:0 ...
for 8 hours, for example. Set s_rt or h_rt (soft/hard limits) based on which is set at the complex level.