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

Limited data is shown when used on photonos #477

Open
barbz127 opened this issue Jul 19, 2019 · 4 comments
Open

Limited data is shown when used on photonos #477

barbz127 opened this issue Jul 19, 2019 · 4 comments

Comments

@barbz127
Copy link

When installed on photonos 3.0 not all data is displayed.

Some missing datasets include:
Ram & CPU Processes
Swap
Docker processes.

This could be related to background packages missing from the default install.
Thankyou

@alozovskoy
Copy link
Contributor

Can you show the result of calling the corresponding functions in manual mode? It's like

./app/server/linux_json_api.sh MODULE_NAME

where MODULE_NAME is

  • "ram_intensive_processes" for RAM process
  • "cpu_intensive_processes" for CPU process
  • "swap" for swap
  • "docker_processes" for docker process

Maybe it really depends on some unusual packages of your distributive, but it's easiest to check by results of module call.

@barbz127
Copy link
Author

Nothing super descriptive sorry

`bash-4.3$ ./app/server/linux_json_api.sh ram_intensive_processes
/bin/ps: unrecognized option: sort
BusyBox v1.27.1 (2017-08-05 22:04:53 GMT) multi-call binary.

Usage: ps [-o COL1,COL2=HEADER]

Show list of processes

    -o COL1,COL2=HEADER     Select columns for display

[ ]bash-4.3$ ./app/server/linux_json_api.sh swap
[]bash-4.3$ ./app/server/linux_json_api.sh docker_processes
./app/server/linux_json_api.sh: line 171: docker: command not found
[ ]bash-4.3$ ./app/server/linux_json_api.sh cpu_intensive_processes
/bin/ps: unrecognized option: sort
BusyBox v1.27.1 (2017-08-05 22:04:53 GMT) multi-call binary.

Usage: ps [-o COL1,COL2=HEADER]

Show list of processes

    -o COL1,COL2=HEADER     Select columns for display

[ ]bash-4.3$`

@alozovskoy
Copy link
Contributor

OK, thanks for this information!
So, a "ps" on busybox actualy support not of all options from "big" ps, f.e. it's not show memory usage by process in percent, do not supoprt sorting and so on. It, not big deal as for me - we can calculate memory by data getting from /proc, sorting is not problem too and so on, but i need some time for PR realisation. After it, information about process by ram and by cpu usage should be displayed well.

Swap - do you really have it? "cat /proc/swaps" or "free -m" does show something about it? Can you posting a results of this command run?

And same question about docker - is it really exist on you host? If yes, how you work with it? Module cant find an docker binary, maybe it on not-PATH location or something like that?

@barbz127
Copy link
Author

sorry - turns out there isnt a swap file.

docker is installed - paths are setup and user creating the container has docker rights.

user@docker [ ~ ]$ cat /proc/swaps Filename Type Size Used Priority user@docker [ ~ ]$ docker --version Docker version 18.06.2, build 6d37f41

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

2 participants