Summary: | ksysguard gui is not showing the process list on Solaris | ||
---|---|---|---|
Product: | [Applications] ksysguard | Reporter: | Jan Hnatek <jan.hnatek> |
Component: | general | Assignee: | KSysGuard Developers <ksysguard-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | johnflux, moinakg, tropikhajma |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Solaris | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
patch
Updated patch to fix Swap and CPU load reporting ksysguard Solaris patch 1 ksysguard Solaris patch 2 ksysguard Solaris patch 2 updates cpu/network sensors |
Description
Jan Hnatek
2009-07-18 14:20:28 UTC
Created attachment 37309 [details] patch This is a patch that was tested to work on OpenSolaris b121. In some parts #ifdef Q_OS_SOLARIS is missing and should be added to not break other OSes. Author of the patch is Moinak Ghosh and the patch was taken from here: http://belenix.svn.sourceforge.net/viewvc/belenix/trunk/spec_files/kde4/patches/kdebase-workspace-18-ksysguard.diff?view=log Created attachment 37317 [details]
Updated patch to fix Swap and CPU load reporting
I have attached an updated patch. However the trouble is with the ReniceDlgUI.ui file since the current patch breaks it for Linux. I think that file should be platform-specific. In addition more updates to ksysguardd for OpenSolaris are coming that will implement additional monitors. Hi Moinak, Looks good. If you promise to not break the other OSes, then you can commit directly if you have an svn account. No breaking the renice dialog on linux though please! John As it stands now the patch requires more work to avoid breaking on Linux. That is deliver a separate Renice dialog for Solaris. A couple of items in the patch are however generic, for eg. some qlonglong members of the Process class are being assigned to long variables, that I changed to qlonglong. Anyway I will make additional changes and check it, probably against Fedora. > As it stands now the patch requires more work to avoid breaking on Linux. That > is deliver a separate Renice dialog for Solaris. Or just disable the renice dialog for Solaris. better to have it mostly than working than not working at all, or working with regressions. > A couple of items in the patch > are however generic, for eg. some qlonglong members of the Process class are > being assigned to long variables, that I changed to qlonglong. Could you commit this seperately please? I have a few bug reports about negative memory being reported - presumably because of qlonglong to long conversions. > Anyway I will make additional changes and check it, probably against Fedora. Thank you! Anything more on this? This works now on the build I'm using, which is 4.3.2. I believe you can close this. Thanks all who participated on the fix. Was this commited to trunk ? Apologize for not getting any time earlier. I am only getting around to this now. Created attachment 43015 [details]
ksysguard Solaris patch 1
Created attachment 43016 [details]
ksysguard Solaris patch 2
(In reply to comment #9) > Was this commited to trunk ? Apologize for not getting any time earlier. I am > only getting around to this now. Sorry, of course not, my confusion. (In reply to comment #7) > Anything more on this? I updated Moinak's patch for 4.4.2 and added some branching for Solaris, so that Linux ReniceDlgUi isn't touched. Attached the changes that are separated to 2 files - one with Solaris-specific files and the rest. Would be good if someone takes a look at ti and commits if ok (I don't have an svn account). Thanks, hnhn Created attachment 43017 [details]
ksysguard Solaris patch 2
forgot one change block
Created attachment 43027 [details]
updates cpu/network sensors
SVN commit 1119875 by johnflux: Add solaris support to the Renice dialog, supporting the Interactive scheduler BUG:200646 M +1 -0 processcore/process.cpp M +1 -1 processcore/process.h M +1 -1 processcore/processes_solaris_p.cpp M +3 -0 processui/ProcessModel.cc M +6 -1 processui/ReniceDlg.cc WebSVN link: http://websvn.kde.org/?view=rev&revision=1119875 I've applied: ksysguard Solaris patch 1 updates cpu/network sensors And wrote a patch based on: ksysguard Solaris patch 2 And this is now committed. Please check this on Solaris! I added a new cpu class 'Interactive' instead of reusing the Batch enum. There's a comment about how to support RoundRobbin etc on solaris. Please instead just add new enums for the cpu classes that you do support I backported all the commits except the renice dialog string changes to KDE 4.4. Please check this quickly if you want to fix any mistakes before 4.4.3 is tagged. Thanks John. Any chance you could add attribution to Moinak? ~90% of this code is his... On 28 April 2010 17:46, Jan Hnatek <jan.hnatek@sun.com> wrote: > https://bugs.kde.org/show_bug.cgi?id=200646 > > > > > > --- Comment #18 from Jan Hnatek <jan hnatek sun com> 2010-04-28 10:46:50 --- > Thanks John. > Any chance you could add attribution to Moinak? ~90% of this code is his... Sorry, I already committed :-/ If you check it over and come up with bug fixes, I'll attribute him there. |