Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Troubleshooting slow emulators
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
LemonadeLlama
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2021
Posts: 101
Location: New Zealand

PostPosted: Mon Nov 22, 2021 5:50 am    Post subject: Troubleshooting slow emulators Reply with quote

https://youtu.be/1hNwwOOikGQ

So recently, I updated my kernel config, since I wanted to experiment with docker and it required some options I didn't have.

I think that since then, the performance of my emulators has declined.

Take melonDS for example. I used to get 60fps no problem, but now it's more like 30, the audio is stuttering, and it feels like I'm skipping frames (but I don't know that for sure).

I wanted to try reverting to the old kernel config, but not only did I delete all my old configs (meaning I have to rebuild the old kernel), but there's no Makefile in the directory of the version I wnt to test. I think this is because of a --depclean command.

Is there any way I can rebuild the old kernel? I'm currently using 5.15.3, and the old version is 5.13.8, which doesn't seem to be in gentoo-sources. I'm not sure how I can build the old version.

Alternatively, are there any other troubleshooting techniques I can do, to figure out the issue? I tried running emerge -e @world to rebuild everything, but it didn't change a thing.[/i]


Last edited by LemonadeLlama on Thu Nov 25, 2021 9:23 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Mon Nov 22, 2021 11:04 am    Post subject: Reply with quote

LemonadeLlama,

You should still have the old kernel sources in your diistfiles, they will still be on the web if not.
Code:
emerge =gentoo-sources-<ver>
will reinstall the sources for you.

If the ebuild for gentoo-sources-<ver> has been removed from ::gentoo you need to fetch it from git. All the ebuilds that were ever in ::gentoo are there.
The correct way to maintain out of tree ebuilds is to set up your own overlay. For a single use, like this, you can put the ebuild back in the ::gentoo repo but be aware that it will be removed again with your next --sync
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
LemonadeLlama
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2021
Posts: 101
Location: New Zealand

PostPosted: Tue Nov 23, 2021 7:24 am    Post subject: Reply with quote

NeddySeagoon wrote:
If the ebuild for gentoo-sources-<ver> has been removed from ::gentoo you need to fetch it from git. All the ebuilds that were ever in ::gentoo are there.
The correct way to maintain out of tree ebuilds is to set up your own overlay. For a single use, like this, you can put the ebuild back in the ::gentoo repo but be aware that it will be removed again with your next --sync


How do I do that? I've never set up my own overlay before, or even have much knowledge on what overlays are.

I checked out the gentoo repo and now have the .ebuild file. What do I do with that file?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Tue Nov 23, 2021 8:41 am    Post subject: Reply with quote

LemonadeLlama,

The quick and dirty is to put it into your ::gentoo repo beside the other gentoo-sources ebuilds, then run
Code:
ebuild /path/to/.ebuild digest
to create the manifest.

The correct thing is to add your own local overlay.
That page explains how it all works. One of the links at the bottom tells how to do it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
LemonadeLlama
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2021
Posts: 101
Location: New Zealand

PostPosted: Tue Nov 23, 2021 8:42 am    Post subject: Reply with quote

Anyway, here's an update on my situation.

I copied the old kernel config (without any of my modifications from Docker requirements). I thought that it would be easier just to run make oldconfig with the old configuration and rebuild the kernel.

So I now have a kernel without the changes I made myself. I'm still getting those Buffer I/O errors and my emulators are still running poorly.

How do I figure out where these bad reads are coming from?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Tue Nov 23, 2021 8:43 am    Post subject: Reply with quote

LemonadeLlama,

Put your dmesg onto a pastebin.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
LemonadeLlama
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2021
Posts: 101
Location: New Zealand

PostPosted: Tue Nov 23, 2021 8:58 am    Post subject: Reply with quote

Ah, sorry, I thought I already pasted in my dmesg output. I was thinking of another post I made: https://forums.gentoo.org/viewtopic-t-1145618.html

This is an example of what I was getting:

Code:
[   93.460040] retire_capture_urb: 250 callbacks suppressed
[  127.651912] nvidia_uvm: module uses symbols from proprietary module nvidia, inheriting taint.
[  127.679070] nvidia-uvm: Loaded the UVM driver, major device number 245.
[  150.632818] sr 1:0:0:0: [sr0] tag#2 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[  150.632829] sr 1:0:0:0: [sr0] tag#2 Sense Key : Not Ready [current]
[  150.632836] sr 1:0:0:0: [sr0] tag#2 Add. Sense: Medium not present - tray closed
[  150.632842] sr 1:0:0:0: [sr0] tag#2 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[  150.632845] blk_update_request: I/O error, dev sr0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[  150.632933] sr 1:0:0:0: [sr0] tag#9 unaligned transfer
[  150.632942] blk_update_request: I/O error, dev sr0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  150.632951] Buffer I/O error on dev sr0, logical block 0, async page read
[  150.632973] sr 1:0:0:0: [sr0] tag#10 unaligned transfer
[  150.632977] blk_update_request: I/O error, dev sr0, sector 1 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  150.632983] Buffer I/O error on dev sr0, logical block 1, async page read
[  150.632996] sr 1:0:0:0: [sr0] tag#11 unaligned transfer
[  150.632999] blk_update_request: I/O error, dev sr0, sector 2 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  150.633004] Buffer I/O error on dev sr0, logical block 2, async page read
[  150.633016] sr 1:0:0:0: [sr0] tag#12 unaligned transfer
[  150.633018] blk_update_request: I/O error, dev sr0, sector 3 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  150.633023] Buffer I/O error on dev sr0, logical block 3, async page read
[  150.633035] sr 1:0:0:0: [sr0] tag#13 unaligned transfer
[  150.633037] blk_update_request: I/O error, dev sr0, sector 4 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  150.633042] Buffer I/O error on dev sr0, logical block 4, async page read
[  150.633055] sr 1:0:0:0: [sr0] tag#14 unaligned transfer
[  150.633057] blk_update_request: I/O error, dev sr0, sector 5 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  150.633062] Buffer I/O error on dev sr0, logical block 5, async page read
[  150.633074] sr 1:0:0:0: [sr0] tag#15 unaligned transfer
[  150.633076] blk_update_request: I/O error, dev sr0, sector 6 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  150.633081] Buffer I/O error on dev sr0, logical block 6, async page read
[  150.633094] sr 1:0:0:0: [sr0] tag#16 unaligned transfer
[  150.633097] blk_update_request: I/O error, dev sr0, sector 7 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  150.633101] Buffer I/O error on dev sr0, logical block 7, async page read
[  172.175817] sr 1:0:0:0: [sr0] tag#9 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[  172.175829] sr 1:0:0:0: [sr0] tag#9 Sense Key : Not Ready [current]
[  172.175836] sr 1:0:0:0: [sr0] tag#9 Add. Sense: Medium not present - tray closed
[  172.175842] sr 1:0:0:0: [sr0] tag#9 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[  172.175845] blk_update_request: I/O error, dev sr0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 4 prio class 0
[  172.195801] sr 1:0:0:0: [sr0] tag#10 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[  172.195813] sr 1:0:0:0: [sr0] tag#10 Sense Key : Not Ready [current]
[  172.195820] sr 1:0:0:0: [sr0] tag#10 Add. Sense: Medium not present - tray closed
[  172.195826] sr 1:0:0:0: [sr0] tag#10 CDB: Read(10) 28 00 00 00 00 00 00 00 02 00   
[ 172.195829] blk_update_request: I/O error, dev sr0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 8 prio class 0
[ 172.195840] Buffer I/O error on dev sr0, logical block 0, async page read
[ 172.195846] Buffer I/O error on dev sr0, logical block 1, async page read
[ 172.195849] Buffer I/O error on dev sr0, logical block 2, async page read
[ 172.195851] Buffer I/O error on dev sr0, logical block 3, async page read
[ 172.195854] Buffer I/O error on dev sr0, logical block 4, async page read
[ 172.195857] Buffer I/O error on dev sr0, logical block 5, async page read
[ 172.195860] Buffer I/O error on dev sr0, logical block 6, async page read
[ 172.195862] Buffer I/O error on dev sr0, logical block 7, async page read



However, since I've uninstalled some unused packages, used my reconfigured kernel, and tried putting a disk in my disc drive, I don't see those errors any more.

Anyway, here's my current dmesg output: https://pastebin.com/KPN59589
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Tue Nov 23, 2021 12:05 pm    Post subject: Reply with quote

LemonadeLlama,

Depending on what was trying to read the optical drive and how it was doing it, it may or may not have made the system slow to respond.
Does your original issue persist?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
LemonadeLlama
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2021
Posts: 101
Location: New Zealand

PostPosted: Tue Nov 23, 2021 7:37 pm    Post subject: Reply with quote

Yes, I'm still having the same issues.
Back to top
View user's profile Send private message
LemonadeLlama
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2021
Posts: 101
Location: New Zealand

PostPosted: Thu Nov 25, 2021 9:19 am    Post subject: Reply with quote

I've captured a video of what I've been experiencing.

https://youtu.be/1hNwwOOikGQ

I'm at my wits end here :cry:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum