Can anyone please help me regarding this .sh script:
The shell script should monitor CPU,memory and I/O utilization continuously after a defined time interval and should write it in an output file like excell. (1 Reply)
Hi Unix Gurus i am somewhat new to unix scripting so need your help to
create a script as below.
# This script would find the process consuming memory beyond a certain #limit. if the meemory consumption is more than 100% for a period of 1
# minute for the specific process. the script would... (0 Replies)
Hi,
i have two oracle instances running on my server with 7.5G RAM but it is showing almost 99% memory is full as you can see bellow.
# svmon
size inuse free pin virtual
memory 1974272 1954270 20002 336595 1800652
pg space 4194304 ... (7 Replies)
Hi all,
I found like top command could be used to find the Memory and CPU utilization. But i want to know how to find the Memory and CPU utilization for a particular user using top command.
Thanks in advance.
Thanks,
Ananthi.U (2 Replies)
Hi Experts,
Our servers running Solaris 10 with SAP Application. The memory utilization always >90%, but the process on SAP is too less even nothing.
Why memory utilization on solaris always looks high?
I have statement about memory on solaris, is this true:
Memory in solaris is used for... (4 Replies)
Hello,
Am working on small program that used to calculate the memory usage of AIX servers. Am using svmon -G command to get the memory usage. For example, consider the following output.
$ svmon -G
size inuse free pin virtual mmode
memory ... (9 Replies)
Hi All,
I have some questions regarding the performance, MEMORY/ Virtual Memory (paging /swap space)
Please see the nmon-MEMORY stats from my AIX LPAR.
24 GB --> RAM
3456 MB --> Paging Space
│ Memory ───────────────────────────────────────────────────────────────────────
│... (8 Replies)
Hi All,
I am using HP-UX 11i v1(B11.11) servers for my work and its memory (RAM) utilization is consistenly 80% for the last one year. Though I am not facing any issues with this high memory utilization I just want to know the below queries:
1) Is it the default behavior of HP-UX systems?
2)... (20 Replies)
Hi,
i am new to linux/RHEL 6.0 and i have two questions.
1) How to get the CPU utilization and Memory Utilization of all Services running currently?
2) How to get the CPU utilization and Memory Utilization of all Applications running currently?
Please help me to find the script.
... (2 Replies)
Discussion started by: nossam
2 Replies
LEARN ABOUT FREEBSD
gpio_pin_pulldown
GPIO(3) BSD Library Functions Manual GPIO(3)NAME
gpio_open, gpio_close -- library to handle GPIO pins
LIBRARY
library ``libgpio''
SYNOPSIS
#include <libgpio.h>
gpio_handle_t
gpio_open(unsigned int unit);
gpio_handle_t
gpio_open_device(const char *device);
void
gpio_close(gpio_handle_t handle);
int
gpio_pin_list(gpio_handle_t handle, gpio_config_t **pcfgs);
int
gpio_pin_config(gpio_handle_t handle, gpio_config *cfg);
int
gpio_pin_set_flags(gpio_handle_t handle, gpio_config_t *cfg);
gpio_value_t
gpio_pin_get(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_set(gpio_handle_t handle, gpio_pin_t pin, gpio_value_t value);
int
gpio_pin_toggle(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_low(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_high(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_input(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_output(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_opendrain(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_pushpull(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_tristate(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_pullup(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_pulldown(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_invin(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_invout(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_pulsate(gpio_handle_t handle, gpio_pin_t pin);
DESCRIPTION
The libgpio library provides an interface to configure GPIO pins. The library operates with a gpio_handle_t opaque type which can be created
with gpio_open() or gpio_open_device(). When no more GPIO operations are needed, this handle can be destroyed with gpio_close().
To get a list of all available pins, one can call gpio_pin_list(). This function takes a pointer to a gpio_config_t which is dynamically
allocated. This pointer should be freed with free(3) when it's no longer necessary.
The function gpio_pin_config() retrieves the current configuration of a pin. The pin number should be passed in via the g_pin variable which
is part of the gpio_config_t structure.
The function gpio_pin_set_flags() configures a pin with the flags passed in by the gpio_config_t structure. The pin number should also be
passed in through the g_pin variable. All other structure members will be ignored by this function. The list of flags can be found in
/usr/include/sys/gpio.h.
The get or set the state of a GPIO pin, the functions gpio_pin_get() and gpio_pin_set() are available, respectively. To toggle the state,
use gpio_pin_toggle().
The functions gpio_pin_low() and gpio_pin_high() are wrappers around gpio_pin_set().
The functions gpio_pin_input(), gpio_pin_output(), gpio_pin_opendrain(), gpio_pin_pushpull(), gpio_pin_tristate(), gpio_pin_pullup(),
gpio_pin_pulldown(), gpio_pin_invin(), gpio_pin_invout() and gpio_pin_pulsate() are wrappers around gpio_pin_set_flags().
EXAMPLES
The following example shows how to configure pin 16 as output and then drive it high:
#include <err.h>
#include <libgpio.h>
gpio_handle_t handle;
handle = gpio_open(0);
if (handle == GPIO_HANDLE_INVALID)
err(1, "gpio_open failed");
gpio_pin_output(handle, 16);
gpio_pin_high(handle, 16);
gpio_close(handle);
The following example shows how to get a configuration of a pin:
gpio_config_t cfg;
cfg.g_pin = 32;
gpio_pin_config(handle, &cfg);
The structure will contain the name of the pin and its flags.
SEE ALSO gpiobus(4), gpioctl(8)HISTORY
The libgpio library first appeared in FreeBSD 11.0.
AUTHORS
The libgpio library was implemented by Rui Paulo <rpaulo@FreeBSD.org>.
BSD November 17, 2014 BSD