JonMagon / KDiskMark

A simple open-source disk benchmark tool for Linux distros
GNU General Public License v3.0
1.07k stars 43 forks source link

Doesn't work with /home #66

Closed kartun83 closed 2 years ago

kartun83 commented 2 years ago

Description:

Choosing any directory in /home doesn't allow to perform tests

Steps To Reproduce:

Select directory in /home/$user

JonMagon commented 2 years ago

Could you provide more information? What error occurs or what?

youling257 commented 2 years ago

I mount /dev/sda1 on /1, choose /1 directory, benchmark failed.

youling257 commented 2 years ago

I used "cmake -D PERFORM_PAGECACHE_CLEARING_USING_KF5AUTH=OFF .." to build kdiskmark, run benchmark no problem.

youling257 commented 2 years ago

I install kdiskmark_2.3.0_amd64.deb, run kdiskmark as root, no anything directory found. run my build kdiskmark as root, can found directory. _20211231_133538 _20211231_133507

JonMagon commented 2 years ago

The directory structure is quite strange. Since you write that when running as a non-root user the directories are not displayed and the benchmarking fails, it is likely that the normal user does not have access to these directories.

youling257 commented 2 years ago

i write i running kdiskmark as root user always, running the deb package kdiskmark as root. running my build kdiskmark as root user.

JonMagon commented 2 years ago

What distribution do you use?

youling257 commented 2 years ago

chroot running ubuntu Jammy Jellyfish, ssh connect ubuntu root user, vnc view ubuntu root user.

JonMagon commented 2 years ago

Okay, I'll test it and come back later. By the way, try to install a package from PPA.

youling257 commented 2 years ago

dpkg -i kdiskmark_2.3.0_amd64.deb, apt --fix-broken install, install libkf5auth5, the directories are not displayed. install a package from PPA, libkf5auth5 needn't, auto remove libkf5auth5, the directories are displayed. but my problem still exists with ppa package. my build kdiskmark binary no problem. _20211231_212930 _20211231_212943 You can't recreate my test environment, my test environment can't say clear.

youling257 commented 2 years ago

in my test environment,

kf.auth: Tried to start an invalid action: "org.jonmagon.kdiskmark.dropcache" qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile)

qt.qpa.xcb: failed to initialize XRandr qt.qpa.xcb: XKeyboard extension not present on the X server QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile) qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile) qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 509, resource id: 16778335, major code: 40 (TranslateCoords), minor code: 0

(kdiskmark:29210): CRITICAL : 21:35:40.748: polkit_system_bus_name_new: assertion 'g_dbus_is_unique_name (name)' failed

(kdiskmark:29210): GLib-GObject-CRITICAL **: 21:35:40.748: g_object_unref: assertion 'G_IS_OBJECT (object)' failed kf.auth: Tried to start an invalid action: "org.jonmagon.kdiskmark.dropcache" qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile)

claytondukes commented 2 years ago

I am getting this same error:

(kdiskmark:29210): GLib-GObject-CRITICAL **: 21:35:40.748: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
kf.auth: Tried to start an invalid action: "org.jonmagon.kdiskmark.dropcache

In my case, I am using docker (base image dorowu/ubuntu-desktop-lxde-vnc)

Is it something in docker, or is it something with kdiskmark?