Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve more info about jobs when using 'at' adaptor #684

Open
jmaassen opened this issue Sep 8, 2021 · 1 comment
Open

Retrieve more info about jobs when using 'at' adaptor #684

jmaassen opened this issue Sep 8, 2021 · 1 comment

Comments

@jmaassen
Copy link
Member

jmaassen commented Sep 8, 2021

Currently the at adaptor returns very little info once a job has finished. Even getting the correct state or exit code is hard (see #683).

We could get a bit more information about the job by using an external tool such as '/bin/time like so:

/bin/time -v xenon filesystem file list /home/jason > out 
	Command being timed: "xenon filesystem file list /home/jason"
	User time (seconds): 1.15
	System time (seconds): 0.05
	Percent of CPU this job got: 259%
	Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.46
	Average shared text size (kbytes): 0
	Average unshared data size (kbytes): 0
	Average stack size (kbytes): 0
	Average total size (kbytes): 0
	Maximum resident set size (kbytes): 87552
	Average resident set size (kbytes): 0
	Major (requiring I/O) page faults: 0
	Minor (reclaiming a frame) page faults: 18320
	Voluntary context switches: 1334
	Involuntary context switches: 233
	Swaps: 0
	File system inputs: 0
	File system outputs: 80
	Socket messages sent: 0
	Socket messages received: 0
	Signals delivered: 0
	Page size (bytes): 4096
	Exit status: 0

Time provides information on resource usage, as well as the exit code, but only once the application has finished. We could use this to write a /tmp/xenon.at.finished.#ID file which the at adaptor can use to get information about finished jobs.

@jmaassen
Copy link
Member Author

Fixed in improved-at branch. Should merge and create a new release, also of xenon-cli?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant