I have sshd with PID of 1957:
mohsen@debian:~$ ps ax -o pid,nice,pri,cmd |grep 1957
1957 -2 21 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
According to above, my nice number is -2 and pri number is 21.
According to /proc/1957, I can't find my nice number and pri number.
root@debian:~# cd /proc/1957
root@debian:/proc/1957# cat sched
sshd (1957, #threads: 1)
-------------------------------------------------------------------
se.exec_start : 211942985.934983
se.vruntime : 31.031644
se.sum_exec_runtime : 23.385935
se.nr_migrations : 14
nr_switches : 57
nr_voluntary_switches : 18
nr_involuntary_switches : 39
se.load.weight : 1624064
se.avg.load_sum : 4366
se.avg.runnable_sum : 4470824
se.avg.util_sum : 1557504
se.avg.load_avg : 147
se.avg.runnable_avg : 95
se.avg.util_avg : 33
se.avg.last_update_time : 211909716609024
se.avg.util_est : 38
policy : 0
prio : 118
clock-delta : 89
mm->numa_scan_seq : 0
numa_pages_migrated : 0
numa_preferred_nid : -1
total_numa_faults : 0
current_node=0, numa_group_id=0
numa_faults node=0 task_private=0 task_shared=0 group_private=0 group_shared=0
Where in /proc are the number pri and nice stored?