Same problem as someone else below- my optical drive will not read CDs in SuSE 11.3 (all the latest patches). CDs read fine in Windows, DVDs fine in both.This is a brand new drive, since my old one gave up the ghost last Tuesday (no longer appeared in BIOS)Drive is Samsung SH-S223L, and dmesg gives the following errors:
[ 64.952304] Buffer I/O error on device sr0, logical block 158968
[ 71.651194] sr 6:0:0:0: [sr0] Unhandled sense code
[ 71.651198] sr 6:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
I am going to use "pthread_setaffinity_np" to bind a thread to a specific core. My application has two threads. I have used mutex to assign a specific id to each thread and then bind that thread to a core different from another core. but it seems that the os assigns both thread to one core.What should I do to bind each thread to a specific core?
I am trying to install an Open GL screen saver "EulerTop-1.2" and I get the following error message when I run configure - "checking for perl /usr/bin/perl checking for Qt... configure: error: Qt (>= Qt 3.2) (library qt-mt) not found. For more details about this problem, look at the end of config.log. Make sure that you have compiled Qt with thread support!" It appears to be installed -
I went through really a lot of Linux systems, and I think I am going to settle on Opensuse OS. I must say Opensuse 11.3 is fantastic! However I have this lousy in the top 5 of evil graphic cards list ATI Radeon XPRESS 200 card. This version of Opensuse seems to best realize what creature it is and gives the biggest description of it in the hardware information from all Linux distros I have tried. Unfortunately I have a big trouble to install proprietary drivers. I downloaded the recommended drives from amd-ati homepage but on debian and ubuntu installing via terminal simply reports an error while Opensuse doens;t even try to run the ati run file of drivers.
Could somebody please assist me and give recommendations what to do in order to install proprietary legacy drivers? Keep in mind I am a complete newbie. The only thing I am good at with terminal is copy/paste. I learned how to add repos to the yeast and successfully added amd ati repo to the lsit, but it still doens;t seem to give anything suitable in my case.
I do believe it would be a valuable source for people looking for steps instruction related to legacy drivers so lets consider this something like How To Escape ATI Legacy Drivers Nightmares thread.
Not sure if I have landed in right place for this question .Problem FacedI have 30-40 heavy load (Memory operations on heap) processor running with each having 30-40 threads.In one of the thread (of each process), I have file locking operation as explained below (say in thread T1)Step 1 - Lock the file using fcntl(SETWLK) on file f1, Basically using wait lock.Step 2 - Read/write data from another file f2.Step 3 - unlock the file f1.As the memory occupied by process increased, the swap area used will reduce - this continues for a long amount of period. When the free swap space is reduced to 100 MB free out of 2 G and VIRT reduces to 120MB free out of 17G, for T1 thread, Step 3 is not scheduled for more than 300 seconds after Step 1 and 2.
I want to understand why this behavior is present - as per my understanding scheduling will occur within micro-seconds and we can expect that the T1 thread of all process should be scheduled without too much delay.Additional InfomationMachine Info : (uname -a), Linux linux 2.6.16.46-0.12-smp#1 SMP Thu May 17 14:00:09 UTC 2007 x86_64 x86_64 GNU/LinuxMemory Info :Total Memory is 16GB + Swap Memory is 2GBI want to know why this behavior is observed in SUSE
This thread (nxserver now broken?) has inspired me to install FreeNX and the client from nomachine on openSUSE-11.2 (this is the version used on both, server and client machine). The good news is: basically it works. I can connect and get the desktop. However, I have some trouble with the keyboard. Up and Down arrow keys do not work. The up arrow triggers a screen snapshot. The down arrow key does nothing. I tried to connect using qtnx as well. This does not work. Result is:
I don't understand the results of a simple performance test I ran using two basic scripts (running on a high end server):
perfVar.zsh :
#!/bin/zsh -f MYVAR=`cat $1` for i in {1..10}
[code]...
Performance test result:
> time ./perfVar.zsh BigTextFile > /dev/null ./perfVar.zsh FE > /dev/null 6.86s user 0.32s system 100% cpu 7.177 total > time ./perfCat.zsh BigTextFile > /dev/null ./perfCat.zsh FE > /dev/null 0.01s user 0.10s system 91% cpu 0.118 total
I would have thought that accessing a VARIABLE was way faster than reading a FILE on the file system... Why this result ?Is there a way to optimize the perfCat.zsh script by reducing the number of accesses to the file system ?
i installed kernel 2.6.34 to fix my lid closing issue, and that went great. but now when i go to reinstall my broadcom i get this error. Code: Reading package lists... Done Building dependency tree Reading state information... Done bcmwl-kernel-source is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space will be used. Setting up bcmwl-kernel-source (5.60.48.36+bdcom-0ubuntu3) ... Removing old bcmwl-5.60.48.36+bdcom DKMS files...
I did a fresh installation of OpenSuse 11.4-x64 and everything is working smoothly except for some eps figures. In Opensuse 11.3, fedora or ubuntu these figures open without problems. In 11.4 the same figures show a message "Could not load document". I am trying to attach some example of the figures with this problem but I don't know how to do. All the EPS figures that I can't open have the same beginning.
I just decided to learn how to use opensuse(total newbie), I installed 11.4 on my macbook along with os x. At first I used to be able to read the two HFS+ partitions on the laptop after entering the password. But after looking up how to configure the system on the macbook(sound, grahpics....etc) I dunno if I messed up something or what, now I get this error whenever I try to mount the HFS+ partitions( I am still asked for authorization though):
An error occurred while accessing 'Data', the system responded: org.freedesktop.UDisks.Error.Failed:Requested filesystem type is neither wll-known nor in /proc/filesystems nor in /etc/filesystems
I've been able to get access to our Netgear NAS, I can browse it, copy files etc. just fine. But I don't have "direct access" in as far as, Open Office won't open any files residing on the NAS, neither can I save directly to the NAS form a program and when I get a "Browse for File" form field on a website (eg attachments in GMail etc.), I can't browse to the NAS either. My XP box does do all of this, either through my mapped network drive or even through browsing the network. How can I make openSuse 11.2 use the NAS with my login credentials as if it was a local disk?
1. 11.4 x64. 2. Solaris SMB server. 3. Gigabit LAN 4. mounted shares from that server (fstab entries)
write speed: 80-90-100 MB/s read speed extremely slow: 3-4-5 MB/s (really funny - our administrator shoked, but i'm not fun, i need fast lan for work)But when i reboot to windows 7 - i have 60-70-80 MB/s in both directions. Read and Write - nice.What happened? kernel updated and all last updates is applied (exclude kopete-because i use old kopete with animated tray icon).I have to tried many tunes like: "noatime" "directio" and also in /etc/modprobe.d - put conf file with: options cifs CIFSMaxBufSize=130048
I have a Kingston 16GB Flash Drive ( the storage should show around 14.5 GB I believe). When I right-click, and go to properties, it only shows a maximum size of about 6.5GB. I cleared the files off of it and formatted it, and it still reads as 6.5GB. It's about a year old, but has not been used very much. I used it a few times to boot off of it, and run Linux ( ...just to try new to me distros) but from the looks of it, there are no partitions that I forgot to take off. I haven't even really used it that much since I got it. Where did my storage space go?
I was about to reinstall the opensuse 11.1 since 11.2 was giving me trouble and ran the 'check installation media' and it turned out every disc I burn gives me 'Error Reading Sector 1891680'. This CD-ROM is broken. Looks like there is a problem with installation. I already burned like 5 different DVDs.
I am trying to install the Reading People Tracker release 1.28 in Open Suse 11.2 and, after some solved errors installing external libraries for mathematics, XML and graphical display, I stuck compiling the Reading People Tracker. It shows a lot lot of errors like:
Code: In file included from /usr/include/c++/4.4/string:56, from /usr/include/c++/4.4/bits/locale_classes.h:42, from /usr/include/c++/4.4/bits/ios_base.h:43, from /usr/include/c++/4.4/ios:43, from /usr/include/c++/4.4/istream:40, from /usr/include/c++/4.4/fstream:40, from ../RGB32Image.cc:12: .....
Recently, I had to switch harddrives on one of my servers due to the need for hardware.
However, when I switched back to the original harddrive I got a surprise : Instead of booting normally in OpenSuse 11.3, it booted in the grub shell.
I did a root ( hd0,1) but when I attempted the setup cmd it failed. Thinking that I probably was a configuration error ( nothing was changed - the drive had spent some time in a nice anti static bag ) I booted using a USB key.
To my surprise I got a message stating that parted couldn't read the other partitions ( boot and swap ) and hence I would not be able to edit then. Fortunately, the data partition seemed OK so I can backup the data.
Preferbly, I would like to be able to restore my original system.
On a Linux CD/DVD, there are compressed filesystem images for the live version for KDE or Gnome for example, but they have no extension, but they are clearly an image file ( compressed filesystem images for the live version before installation ) !!
I was wondering, How do I mount these compressed filesystem images, after I copy the ISO content of the CD/DVD on my system .... I want to edit some files or packages and make some changes, like if I want to customize a live version of gnome for example ! ... ( I know you might be tempted to tell me to use KIWI etc to customize etc ..... ) ... but I want to be able to mount the compressed file system image, then edit it for reading and writing while it is in a subdirectory on its own ... i want to open it ! ... is there a way to do this ??? ... these type of files have no extension ...
i can open this compressed filesystem image then to edit for read & write ... before I roll it back again ..... If and when I succeed .... what should I watch out for ? ... will the same compressed file image but slightly modified work again ?
PS. that same question could be kind of translated or be extended like : how do I use unionfs/squashfs programs on the command line to mount these image files with no extension for read & write mode ???
What is the quickest way to get the thread id(tid) of the current thread in linux? Specifically I use fedora 13. ...and I am talking about inside a C++ program.
Is there a library/system call that will return to me what CPU core a thread of execution is running on? I've looked for a bit on the net already and also in /usr/include and couldn't find one.
getcpu() and sched_getcpu() are two that I found, but when I include the appropriate header files (linux/getcpu.h, and sys/sched.h respectively), gcc says getcpu.h doesn't exist and the linker complains it cannot find the implementation in sched.h.
I'm sure I'm doing something really stupid or overthinking...
What I am doing is running an OpenMP application and specifying a list of cpu cores to run on with GOMP_CPU_AFFINITY. I want to make sure that each core is getting the same number of threads.
**UPDATE**
It seems that this code works, but only with glibc >= 2.6, and my machine has 2.5:
i know i should look more through the forum, but i've been stuck on installing ubuntu on my computer for 3 days now, reinstalling, manual grub installing and so on, but no go. but i found a good thread on my still no fully functional ubuntu computer that explained very well for a complete linux noob how to install grub2 on ubuntu via the livecd. but since i was booting from the live cd meant that i couldn't bookmark it, and very little on this forum, as far as i can see, gets sticky, makes it very hard to find.
the basic problem is, i completly reinstalled ubuntu 10.10, and the bootloader (that i now know is named grub2) could not be installed. so i've found several guides, including the wiki, but it haven't really worked. now instead of explaining all of this over again, like all of you have probably done a million times, can you just post the most informative links here, so i can pick and choose,
I have a program which is uses sigaction to register for a SIGIO signal (for incoming data on a fd) with an appropriate event handler. I also create a new detached thread 'B' that does some work with the received data. Normally the thread B runs properly. But when my event handler is called (because a there is new incoming data), after the event is handled, the thread B is not called immediately. There is a noticeable delay of the order of many seconds before it is scheduled again .During this delay, my program is doing nothing.
What am i doing wrong? Is there someway i can run thread B as soon as the event is handled (and assuming no other work is to be carried out)?
I wrote a code .sh I want to make it a runnable thread. Q1: How can I do that in Ununtu?
Q2: I put that file (x.sh) in the "Auto start" program.I choose start at "start up" but it open the code editor page.I want it to be run behind backgroun...Have I convert it to .exe firstly ?!