how load balancing is initiate in linux kernel
please give me function name which is call step by step to ballance load on multicore processors
thnx in advance
Hello,
They gave me this:
Code:
#!/bin/bash
# Write error message on stderr and die
function die() {
echo "$@" >&2
exit 1
}
# Load var from properties files
function load() {
for propertie in "$@" ; do
[[ -f "${propertie}" ]] || die "load() : \"${propertie}\" don't exist !"
while read ; do
echo "${REPLY%=*}"
echo "${REPLY#*=}"
[[ -n "${REPLY%%=*}" && -z "${REPLY#*=}" ]] || die "load() : Variable \"${REPLY%%=*}\" is empty!"
eval "${REPLY%%=*}"=\'"${REPLY#*=}"\'
done < "${propertie}"
done
}
load "manage_srcds.conf"
echo "SRCDS_TICKRATE=$SRCDS_TICKRATE"
echo "SRCDS_SCREEN=$SRCDS_SCREEN"
echo "SRCDS_SRCDS_GAME_NAME=$SRCDS_GAME_NAME"
echo "SRCDS_MAXPLAYERS=$SRCDS_MAXPLAYERS"
but, return:
Quote:
###################################################
###################################################
load() : Variable "###################################################" is empty!
cat manage_srcds.conf
I just wish that there was no empty variable excluding those who do not have integer.
Best regards,
lsmod is command to list loaded modules and I referred man page of lsmod that shows it refers to /proc/modules file. In terms of my os platform, Ubuntu, almost available modules are in /lib/module directory. I think OS kernel naturally loads modules in there. So, What does kernel refer to load modules at boot time?
Is there any files to be refereed for loading or mechanism can't know easily for end user?
I have an old Pentium 3 all in one computer. This computer will have one dedicated use, which is to watch video streamed over the network from a Slingbox type device. My only requirement is that I can run VLC to play the MPEG2-TS stream. I also want VLC to automatically paly and audio CD when it is placed in the CD drive. Therefore I really don’t require many codecs. My only other requirement is that I will need to load drivers for a wireless remote or something so that I can control VLC.
At the moment the PC does the above with windows XP, but it takes far too long to load. As I only want the computer to perform this one task, what Linux distro would people suggest for the quickest boot? I have so far tried puppy but it still takes a while to load. Does anyone have any suggestions where to go from here?
I am very new to Linux so will need something which is not too hard to setup.
I am new to LINUX and am trying to install Fedora 20 on an ACER Aspire Z5600, the specs are as follows : Pentium Dual Core 64-bit 2.7 GHz processor, 3 GB RAM and well over 100 GB of free HDD space.
When it starts I get the message: not enough memory to load image.
Not sure what the problem is.
Hello everyone,
I just tried upgrading to Linux Mint 17 from version 16, and I obviously did something wrong since when I'm prompted for my password, I get an error message saying "failed to load session cinnamon."
Then there are some error logs which say failed to connect to virtual box kernel service for several lines, then below that "unable to find cinnamon-fullback-mount-helper."
I tried doing ctrl alt f2, but I get a whole bunch of gobbledy gook which I'm unable to copy and paste.
I also tried burning a new DVD-R with Mint 17, but my computer doesn't even read it when I power it on. Otherwise, I would have tried reinstalling the OS.
So any suggestions you have will be greatly appreciated.
Thanks.
Hi
I am new to kali linux and have got a fresh install with all the current updates (without any new repositories). I am really interested in aircrack and wifi exploitation. But before i can do any of that i need to install my second network adapter, the asus n53 pcie. I am able to type this because my motherboard came with its own intergrated wifi adapter, the aetheros (something). That was working out of the box as soon as kali linux was installed, however i need a proper network adapter (the n53) to make use of my 3rd party long range antenna (it can pick up networks over 600m away ).
I am attempting to install my asus n53 pcie network adapter but have had no success at all, most likely because i have no idea what to do once i have extracted the driver. Currently it is sitting in my home folder. It has a few folders and files in it, with these being the folders
(chips, common, include, os, rate_ctrl, sta and tools)
and these being the files
(iwpriv_usage.txt, makefile, readme_sta_pci, rt2860STA.dat, rt2860staCarddat, sta_ate_iwpriv_usage.txt.)
In the readme file it says this in the instructions:
1> $tar -xvzf DPB_RT2860_Linux_STA_x.x.x.x.tgz
go to "./DPB_RT2860_Linux_STA_x.x.x.x" directory.
2> In Makefile
set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"
define the linux kernel source include file path LINUX_SRC
modify to meet your need.
3> In os/linux/config.mk
define the GCC and LD of the target machine
define the compiler flags CFLAGS
modify to meet your need.
** Build for being controlled by NetworkManager or wpa_supplicant wext functions
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.
=> #>cd wpa_supplicant-x.x
=> #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf -d
** Build for being controlled by WpaSupplicant with Ralink Driver
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'.
=> #>cd wpa_supplicant-0.5.7
=> #>./wpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d
4> $make
# compile driver source code
# To fix "error: too few arguments to function ¡¥iwe_stream_add_event"
=> $patch -i os/linux/sta_ioctl.c.patch os/linux/sta_ioctl.c
5> $cp RT2860STA.dat /etc/Wireless/RT2860STA/RT2860STA.dat
6> load driver
#[kernel 2.4]
# $/sbin/insmod rt2860sta.o
# $/sbin/ifconfig ra0 inet YOUR_IP up
#[kernel 2.6]
# $/sbin/insmod rt2860sta.ko
# $/sbin/ifconfig ra0 inet YOUR_IP up
7> unload driver
$/sbin/ifconfig ra0 down
$/sbin/rmmod rt2860sta
And this to me looks like another language. I would GREATLY APPRECIATE IT if someone could give me step by step instructions on how to install this, without skipping on anything. I will even pay 10000 dogecoin if someone helps me! I have been searching youtube tutorials for 3 hours (lol) for it and havent found anything. Please help me!
Thanks
I recently installed debian-7.8.0-i386-DVD-1.iso on a VirtualBox. It "live booted" just fine and then I followed the install instructions. As far as I can tell it works. ??? I dont know. here is the issue. When I tried to instal from the Add/remove software in the applications. I get a notice to load 'Debian GNU/Linux 7.8.0_Wheezy_- Official i386 DVD Binary-1' in the dvd tray, after it starts to load/install. so what is really going on there? why do I need to use this? how do I get around it. I appreciate the input. Keep in mind I have know idea about how Linux works. First time user.
Hi everyone,
I'm planing to join the development team of Linux kernel. As the first step, I started to clone git repo of the linux-next that I found two contradictory tutorials:
https://www.kernel.org/doc/man-pages/linux-next.html
https://github.com/gregkh/kernel-tut...rnel_patch.txt
Which one should I follow?
Thanks.
Can Somebody help me out by giving me step by step instructions on uninstalling Aircrack-ng 1.2 RC 2 and reinstalling Aircrack-ng 1.2 RC 1? including where to download Aircrack-ng 1.2 RC 1. I am using Kali Linux in VMware Player
Thanks in advance.
Hi,
Just downloaded the "systemrescuecd-x86-4.5.2". I then mounted it, created a bootable USB stick. I then copied the source to it. I also copied the source to my PXE server. However, all though the program works brilliantly when booting it from USB, I cannot get it to load completely via the PXE method - basically via PXE boot, I do not see the selection menu.
I hope somebody with more experience can shed some light on this matter, as Linux is not one of my strong points.
The following is my PXE servers config:
LABEL rescue32_3
MENU LABEL ^System Rescue CD 32 bit
KERNEL sysresccd/isolinux/rescue32
APPEND initrd=/sysresccd/isolinux/initram.igz,/sysresccd/sysrcd.dat
Using the above config, PXE Linux appears to find and load the following on the client:
Loading sysresccd/isolinux/rescue32... ok
Loading sysresccd/isolinux/initram.igz... ok
Loading sysresccd/sysrcd.dat... ok
The first sign of the issue during PXE boot is when the program starts to load from RAM on the client:
Reading all physical volumes. This may take a while...
Searching for /sysrcd.dat on devices...
Attempting to mount device: /dev/sda...
Various other attempts to mount volumes and then:
!Cannot find device with /sysrcd.dat. Retrying...
This issue then propagates for other volumes and then displays:
!Cannot find device with /sysrcd.dat on devices.
Running a mini shell (cannot complete the boot process)
bin/sh: can't access tty: job control turned off
Any help would be very much appreciated, as it would be a shame not to be able to use this fantastic resource via PXE.
Kind regards,
proliant800