Operating System - HP-UX
1752795 Members
6230 Online
108789 Solutions
New Discussion юеВ

3 questions about SAM,superblock and config

 
SOLVED
Go to solution
yyghp
Super Advisor

3 questions about SAM,superblock and config

I got 3 tough(for me) questions here, please explain the answers for me, thanks a lot!!!

1. Which one of the following is NOT an advantage of using SAM rather than "ps" and "kill" in order to kill all the processes initiated by one login session?
A. SAM allows you to select multiple processes.
B. SAM allows you to try a "safe kill."
C. SAM requires fewer system resources.
D. SAM allows you to select processes by user or parent.
E. SAM shows them grouped by parent process.

Should I choose A. or C.?
I noticed that I could use SAM to select multiple processes under "Processs Management -> Process Control", but when I choosed "Action", I can see "==" under the menu, is that a bug or it can't really use for multiple processes.
Because I doubt "C. SAM requires fewer system resources."


2. super block last mounted on: /
magic 95014 clean FS_OK time Sun Jul 2 16:41:14
2000
sblkno 16 cblkno 24 iblkno 32 dblkno 80
sbsize 2048 cgsize 2048 cgoffset 24 cgmask 0xfffffff8
ncg 39 size 94208 blocks 91669
bsize 8192 bshift 13 bmask 0xffffe000
In the above fragment of output from the tunefs -v command, which one of the following field/number specifies that the filesystem will take filenames longer than 14 characters?
A. bsize 8192
B. sbsize 2048
C. bmask 0xffffe000
D. cgmask 0xfffffff8
E. magic 95014

I tried to search for the docs about superblock, but I couldn't find anything about what to control "14 characters filenames".


3. Which one of the following is the sequence of actions that must be taken to build a new kernel?
A. cd /stand; modify system; config system; make -f config.mk
B. cd /system; modify system; config system
C. cd /stand; modify system; config config.mk
D. cd /stand; modify system; make -f config.mk; config system
E. cd /stand; modify system; make -f system

What's that "make" for? I couldn't find any doc for building the kernel with "config" and "make", are the commands too old for rebuilding the kernel?

Please help me out! Thanks once again!
8 REPLIES 8
inventsekar_1
Respected Contributor

Re: 3 questions about SAM,superblock and config

1.)
A. SAM allows you to select multiple processes. --this is not true.
B. SAM allows you to try a "safe kill." --this is true. but this is an advantage only.
D and E.--i think they are not the answer.

i will select the "D"

3.)i will select "D. cd /stand; modify system; make -f config.mk; config system"

Be Tomorrow, Today.
yyghp
Super Advisor

Re: 3 questions about SAM,superblock and config

Thanks sekar!
About Queston 1, you said "A" is not true, but why did you choose "D"?
And do you think "SAM requires fewer system resources" than just useing "kill" command?

Thanks!
inventsekar_1
Respected Contributor

Re: 3 questions about SAM,superblock and config

first question:
A, D, E omitted and in B and C, sam not uses fewer system resources, i think. kill is the straight forward way.

so i will select "C".
Be Tomorrow, Today.
Torsten.
Acclaimed Contributor

Re: 3 questions about SAM,superblock and config

"NOT an advantage" - it's part of the game.

My vote is "C". (but compared to what?)

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
yyghp
Super Advisor

Re: 3 questions about SAM,superblock and config

Thanks Torsten!
What's your choice for Question 2 & 3?
A. Clay Stephenson
Acclaimed Contributor

Re: 3 questions about SAM,superblock and config

It is really considered not nice to ask test questions in this forum. I will bend just this once and pick the most difficult. The answer for 2) is E, the magic number.

If it ain't broke, I can fix that.
yyghp
Super Advisor

Re: 3 questions about SAM,superblock and config

oh, I am so sorry.
Someone asked me these questions and I am so curious to know the answers for them, especially question #2.
BTW, do you have any doc for me to learn the detail about superblock? Thanks a lot!
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: 3 questions about SAM,superblock and config

Examine /usr/include/sys/fs.h.
If it ain't broke, I can fix that.